diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-11 16:50:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-11 16:50:20 +0300 |
commit | ab2757fe1ec538809b0bf4ec81a1e51c57b9bee3 (patch) | |
tree | 1f92d8821ae713773786507d28a6801bc61dc0f5 /src/actions | |
parent | ca108c26aa632e54993c11861442800277efa45d (diff) | |
download | plus-ab2757fe1ec538809b0bf4ec81a1e51c57b9bee3.tar.gz plus-ab2757fe1ec538809b0bf4ec81a1e51c57b9bee3.tar.bz2 plus-ab2757fe1ec538809b0bf4ec81a1e51c57b9bee3.tar.xz plus-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.cpp | 7 | ||||
-rw-r--r-- | src/actions/chat.h | 1 |
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 |