summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/gui/partytab.cpp11
-rw-r--r--src/net/ea/gui/partytab.h4
2 files changed, 10 insertions, 5 deletions
diff --git a/src/net/ea/gui/partytab.cpp b/src/net/ea/gui/partytab.cpp
index 6f2ff65a..27e5b2d9 100644
--- a/src/net/ea/gui/partytab.cpp
+++ b/src/net/ea/gui/partytab.cpp
@@ -19,9 +19,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "partytab.h"
+#include "net/ea/gui/partytab.h"
#include "commandhandler.h"
+#include "localplayer.h"
+#include "party.h"
#include "gui/palette.h"
@@ -196,9 +198,12 @@ bool PartyTab::handleCommand(const std::string &type, const std::string &args)
return true;
}
-int PartyTab::getType() const
+void PartyTab::getAutoCompleteList(std::vector<std::string> &names) const
{
- return ChatTab::PARTY;
+ Party *p = player_node->getParty();
+
+ if (p)
+ p->getNames(names);
}
} // namespace EAthena
diff --git a/src/net/ea/gui/partytab.h b/src/net/ea/gui/partytab.h
index da225a07..af111836 100644
--- a/src/net/ea/gui/partytab.h
+++ b/src/net/ea/gui/partytab.h
@@ -39,10 +39,10 @@ class PartyTab : public ChatTab
bool handleCommand(const std::string &type, const std::string &args);
- int getType() const;
-
protected:
void handleInput(const std::string &msg);
+
+ virtual void getAutoCompleteList(std::vector<std::string>&) const;
};
extern PartyTab *partyTab;