summaryrefslogtreecommitdiff
path: root/src/gui/chat.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/gui/chat.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/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 3a47cd16..954ee3f0 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -521,15 +521,9 @@ void ChatWindow::autoComplete()
ChatTab *cTab = static_cast<ChatTab*>(mChatTabs->getSelectedTab());
std::vector<std::string> nameList;
- if (cTab && cTab->getType() == ChatTab::PARTY)
- {
- Party *p = player_node->getParty();
-
- if (p) // Shouldn't be needed, but lets be safe
- p->getNames(nameList);
+ cTab->getAutoCompleteList(nameList);
+ newName = autoComplete(nameList, name);
- newName = autoComplete(nameList, name);
- }
if (newName == "")
{
beingManager->getPlayerNames(nameList, true);