summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/chat/whispertab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-13 00:08:07 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-13 00:08:07 +0300
commitc37ae6c52273c01f634a0635c5255319f385e7fb (patch)
tree7ea53420bdecd46d53df69ccbbe1253214ca9fca /src/gui/widgets/tabs/chat/whispertab.cpp
parent4642291e19a5a98d07c067baddf1b5fafbab943a (diff)
downloadmanaverse-c37ae6c52273c01f634a0635c5255319f385e7fb.tar.gz
manaverse-c37ae6c52273c01f634a0635c5255319f385e7fb.tar.bz2
manaverse-c37ae6c52273c01f634a0635c5255319f385e7fb.tar.xz
manaverse-c37ae6c52273c01f634a0635c5255319f385e7fb.zip
Add whisper tab and channel tab commands to autocomplete.
Diffstat (limited to 'src/gui/widgets/tabs/chat/whispertab.cpp')
-rw-r--r--src/gui/widgets/tabs/chat/whispertab.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/widgets/tabs/chat/whispertab.cpp b/src/gui/widgets/tabs/chat/whispertab.cpp
index e1740d808..20354cc69 100644
--- a/src/gui/widgets/tabs/chat/whispertab.cpp
+++ b/src/gui/widgets/tabs/chat/whispertab.cpp
@@ -115,6 +115,11 @@ void WhisperTab::getAutoCompleteList(StringVect &names) const
names.push_back(mNick);
}
+void WhisperTab::getAutoCompleteCommands(StringVect& commands) const
+{
+ commands.push_back("/close");
+}
+
void WhisperTab::setWhisperTabColors()
{
setTabColors(Theme::WHISPER_TAB);