summaryrefslogtreecommitdiff
path: root/src/net/ea/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/gui')
-rw-r--r--src/net/ea/gui/partytab.cpp10
-rw-r--r--src/net/ea/gui/partytab.h4
2 files changed, 13 insertions, 1 deletions
diff --git a/src/net/ea/gui/partytab.cpp b/src/net/ea/gui/partytab.cpp
index 4a59e89b7..1307e2882 100644
--- a/src/net/ea/gui/partytab.cpp
+++ b/src/net/ea/gui/partytab.cpp
@@ -275,6 +275,16 @@ void PartyTab::getAutoCompleteList(StringVect &names) const
p->getNames(names);
}
+void PartyTab::getAutoCompleteCommands(StringVect &names) const
+{
+ names.push_back("/help");
+ names.push_back("/invite ");
+ names.push_back("/leave");
+ names.push_back("/kick ");
+ names.push_back("/item");
+ names.push_back("/exp");
+}
+
void PartyTab::saveToLogFile(const std::string &msg) const
{
if (chatLogger)
diff --git a/src/net/ea/gui/partytab.h b/src/net/ea/gui/partytab.h
index a73fbaaeb..6662b3ae1 100644
--- a/src/net/ea/gui/partytab.h
+++ b/src/net/ea/gui/partytab.h
@@ -57,7 +57,9 @@ class PartyTab : public ChatTab, public ConfigListener
protected:
void handleInput(const std::string &msg) override final;
- virtual void getAutoCompleteList(StringVect&) const override final;
+ void getAutoCompleteList(StringVect&) const override final;
+
+ void getAutoCompleteCommands(StringVect &names) const override final;
};
extern PartyTab *partyTab;