summaryrefslogtreecommitdiff
path: root/src/net/ea/gui/partytab.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-22 16:49:38 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-22 16:53:32 -0700
commit00cbc7490641a697dbedb85b3b2ff3f75893b7ff (patch)
treea8ac366342a9138063eefca13ea2440042b32b84 /src/net/ea/gui/partytab.cpp
parentdc3b7dc6001c64bd9473518299c74f292b521516 (diff)
downloadmana-00cbc7490641a697dbedb85b3b2ff3f75893b7ff.tar.gz
mana-00cbc7490641a697dbedb85b3b2ff3f75893b7ff.tar.bz2
mana-00cbc7490641a697dbedb85b3b2ff3f75893b7ff.tar.xz
mana-00cbc7490641a697dbedb85b3b2ff3f75893b7ff.zip
Change chat autocompletion to be more flexible
Reviewed-by: Chuck Miller
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