summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/chat/channeltab.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/channeltab.cpp
parent4642291e19a5a98d07c067baddf1b5fafbab943a (diff)
downloadmv-c37ae6c52273c01f634a0635c5255319f385e7fb.tar.gz
mv-c37ae6c52273c01f634a0635c5255319f385e7fb.tar.bz2
mv-c37ae6c52273c01f634a0635c5255319f385e7fb.tar.xz
mv-c37ae6c52273c01f634a0635c5255319f385e7fb.zip
Add whisper tab and channel tab commands to autocomplete.
Diffstat (limited to 'src/gui/widgets/tabs/chat/channeltab.cpp')
-rw-r--r--src/gui/widgets/tabs/chat/channeltab.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/tabs/chat/channeltab.cpp b/src/gui/widgets/tabs/chat/channeltab.cpp
index 43ba86acf..6f7242578 100644
--- a/src/gui/widgets/tabs/chat/channeltab.cpp
+++ b/src/gui/widgets/tabs/chat/channeltab.cpp
@@ -72,3 +72,9 @@ bool ChannelTab::handleCommand(const std::string &restrict type,
return true;
}
+
+void ChannelTab::getAutoCompleteCommands(StringVect& commands) const
+{
+ commands.push_back("/close");
+ commands.push_back(mChannelName);
+}