summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-11 16:50:20 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-11 16:50:20 +0300
commitab2757fe1ec538809b0bf4ec81a1e51c57b9bee3 (patch)
tree1f92d8821ae713773786507d28a6801bc61dc0f5 /src/actions
parentca108c26aa632e54993c11861442800277efa45d (diff)
downloadmanaverse-ab2757fe1ec538809b0bf4ec81a1e51c57b9bee3.tar.gz
manaverse-ab2757fe1ec538809b0bf4ec81a1e51c57b9bee3.tar.bz2
manaverse-ab2757fe1ec538809b0bf4ec81a1e51c57b9bee3.tar.xz
manaverse-ab2757fe1ec538809b0bf4ec81a1e51c57b9bee3.zip
Add chat command for select lang tab.
New chat command: /langtab Alias: /langchattab
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/chat.cpp7
-rw-r--r--src/actions/chat.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index f59bc9a1b..336b03065 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -492,4 +492,11 @@ impHandler0(chatTradeTab)
return true;
}
+impHandler0(chatLangTab)
+{
+ if (chatWindow)
+ chatWindow->selectTabByType(ChatTabType::LANG);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/chat.h b/src/actions/chat.h
index dafc853aa..980ca0762 100644
--- a/src/actions/chat.h
+++ b/src/actions/chat.h
@@ -53,6 +53,7 @@ namespace Actions
decHandler(chatDebugTab);
decHandler(chatBattleTab);
decHandler(chatTradeTab);
+ decHandler(chatLangTab);
} // namespace Actions
#undef decHandler