From 2791fac578c27f6dafc8d5fcebc7f281424285d6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 11 Jan 2015 17:00:44 +0300 Subject: Add chat command for select guild chat tab. New chat command: /guildtab Alias: /guildchattab --- src/actions/chat.cpp | 7 +++++++ src/actions/chat.h | 1 + 2 files changed, 8 insertions(+) (limited to 'src/actions') diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp index 3091bb108..cacafea5b 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -513,4 +513,11 @@ impHandler0(chatPartyTab) return true; } +impHandler0(chatGuildTab) +{ + if (chatWindow) + chatWindow->selectTabByType(ChatTabType::GUILD); + return true; +} + } // namespace Actions diff --git a/src/actions/chat.h b/src/actions/chat.h index b8e0cd5b3..1aa1778ef 100644 --- a/src/actions/chat.h +++ b/src/actions/chat.h @@ -56,6 +56,7 @@ namespace Actions decHandler(chatLangTab); decHandler(chatGmTab); decHandler(chatPartyTab); + decHandler(chatGuildTab); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2