summaryrefslogtreecommitdiff
path: root/src/net/ea/gui/partytab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/gui/partytab.cpp')
-rw-r--r--src/net/ea/gui/partytab.cpp11
1 files changed, 8 insertions, 3 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