From 929caca446c6c3ef0d289d230068d7b264d4887f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 28 Oct 2014 23:06:22 +0300 Subject: Fix /me command in channels and some special tabs. --- src/actions/chat.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp index 3ce066c95..ac834c6f5 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -47,7 +47,7 @@ namespace Actions { -static void outString(const ChatTab *const tab, +static void outString(ChatTab *const tab, const std::string &str, const std::string &def) { @@ -84,16 +84,18 @@ static void outString(const ChatTab *const tab, } break; } + case ChatTabType::CHANNEL: + case ChatTabType::GM: + case ChatTabType::TRADE: + tab->chatInput(str); + break; default: case ChatTabType::UNKNOWN: case ChatTabType::INPUT: case ChatTabType::WHISPER: case ChatTabType::DEBUG: - case ChatTabType::TRADE: case ChatTabType::BATTLE: case ChatTabType::LANG: - case ChatTabType::GM: - case ChatTabType::CHANNEL: chatHandler->me(def, GENERAL_CHANNEL); break; } -- cgit v1.2.3-70-g09d2