diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-11 15:56:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-11 15:56:29 +0300 |
commit | ca108c26aa632e54993c11861442800277efa45d (patch) | |
tree | 2c17e4ed6803b1d72b628d374186068981a7995c /src/actions | |
parent | db5ac7e5ac2642a2df29dcd6de3d6fba5a964b47 (diff) | |
download | manaverse-ca108c26aa632e54993c11861442800277efa45d.tar.gz manaverse-ca108c26aa632e54993c11861442800277efa45d.tar.bz2 manaverse-ca108c26aa632e54993c11861442800277efa45d.tar.xz manaverse-ca108c26aa632e54993c11861442800277efa45d.zip |
Add chat command for select trade tab.
New chat command: /tradetab
Alias: /tradechattab
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 ce54b72db..f59bc9a1b 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -485,4 +485,11 @@ impHandler0(chatBattleTab) return true; } +impHandler0(chatTradeTab) +{ + if (chatWindow) + chatWindow->selectTabByType(ChatTabType::TRADE); + return true; +} + } // namespace Actions diff --git a/src/actions/chat.h b/src/actions/chat.h index b53b069b3..dafc853aa 100644 --- a/src/actions/chat.h +++ b/src/actions/chat.h @@ -52,6 +52,7 @@ namespace Actions decHandler(chatGeneralTab); decHandler(chatDebugTab); decHandler(chatBattleTab); + decHandler(chatTradeTab); } // namespace Actions #undef decHandler |