diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-06 00:40:46 +0300 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-12-05 23:04:28 +0100 |
commit | d4a407254cfffbb79087c1248650fbaed5d568d8 (patch) | |
tree | d28767c846865426c3d13f9bc09e3419cd5f244b | |
parent | acaab21e301cb91b1098db311bdd9ce66ab678dd (diff) | |
download | mana-d4a407254cfffbb79087c1248650fbaed5d568d8.tar.gz mana-d4a407254cfffbb79087c1248650fbaed5d568d8.tar.bz2 mana-d4a407254cfffbb79087c1248650fbaed5d568d8.tar.xz mana-d4a407254cfffbb79087c1248650fbaed5d568d8.zip |
Ignore unsupported messages in public chat
Reviewed-by: Erik Schilling.
-rw-r--r-- | src/net/tmwa/chathandler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |