summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chathandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r--src/net/tmwa/chathandler.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp
index 93f1d9815..962d21363 100644
--- a/src/net/tmwa/chathandler.cpp
+++ b/src/net/tmwa/chathandler.cpp
@@ -290,7 +290,12 @@ void ChatHandler::processChat(Net::MessageIn &msg)
return;
}
- std::string chatMsg = msg.readRawString(chatMsgLength, "message");
+ processChatContinue(msg.readRawString(chatMsgLength, "message"), channel);
+}
+
+void ChatHandler::processChatContinue(std::string chatMsg,
+ const std::string &channel)
+{
const size_t pos = chatMsg.find(" : ", 0);
bool allow(true);