summaryrefslogtreecommitdiff
path: root/src/actions/chat.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-11 15:48:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-11 15:48:13 +0300
commit1db8072c112d0bc5b3cbf3b3151dfa8be9419189 (patch)
tree6fa6980acc0db8f1ee61a0b059bec1215fdc4731 /src/actions/chat.cpp
parent8de44a41862b3a0ff714e68169b6443a2a06b3aa (diff)
downloadmv-1db8072c112d0bc5b3cbf3b3151dfa8be9419189.tar.gz
mv-1db8072c112d0bc5b3cbf3b3151dfa8be9419189.tar.bz2
mv-1db8072c112d0bc5b3cbf3b3151dfa8be9419189.tar.xz
mv-1db8072c112d0bc5b3cbf3b3151dfa8be9419189.zip
Add chat command for select debug tab.
New chat command: /debugtab Alias: /debugchattab
Diffstat (limited to 'src/actions/chat.cpp')
-rw-r--r--src/actions/chat.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index d5b3d9475..0e719fb75 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -467,7 +467,14 @@ impHandler0(clearChat)
impHandler0(chatGeneralTab)
{
if (chatWindow)
- chatWindow->selectGeneralTab();
+ chatWindow->selectTabByType(ChatTabType::INPUT);
+ return true;
+}
+
+impHandler0(chatDebugTab)
+{
+ if (chatWindow)
+ chatWindow->selectTabByType(ChatTabType::DEBUG);
return true;
}