summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-06 00:40:46 +0300
committerErik Schilling <ablu.erikschilling@googlemail.com>2012-12-05 23:04:28 +0100
commitd4a407254cfffbb79087c1248650fbaed5d568d8 (patch)
treed28767c846865426c3d13f9bc09e3419cd5f244b /src/net/tmwa/chathandler.cpp
parentacaab21e301cb91b1098db311bdd9ce66ab678dd (diff)
downloadmana-d4a407254cfffbb79087c1248650fbaed5d568d8.tar.gz
mana-d4a407254cfffbb79087c1248650fbaed5d568d8.tar.bz2
mana-d4a407254cfffbb79087c1248650fbaed5d568d8.tar.xz
mana-d4a407254cfffbb79087c1248650fbaed5d568d8.zip
Ignore unsupported messages in public chat
Reviewed-by: Erik Schilling.
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r--src/net/tmwa/chathandler.cpp5
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;