summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/actions/chat.cpp10
1 files 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;
}