From d4a407254cfffbb79087c1248650fbaed5d568d8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 6 Dec 2012 00:40:46 +0300 Subject: Ignore unsupported messages in public chat Reviewed-by: Erik Schilling. --- src/net/tmwa/chathandler.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/net') diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp index 9e5e7b19..155263b5 100644 --- a/src/net/tmwa/chathandler.cpp +++ b/src/net/tmwa/chathandler.cpp @@ -181,6 +181,11 @@ void ChatHandler::handleMessage(MessageIn &msg) | PlayerRelation::SPEECH_FLOAT); } + // This is a sure sign of some special command of manaplus, + // none of those are supported at the moment. + if (chatMsg.compare(0, 2, "\302\202") == 0) + return; + trim(chatMsg); std::string reducedMessage = chatMsg; -- cgit v1.2.3-70-g09d2