From 399f264360f6e8dfa31d0c3ff7d72aad8033888d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 26 Aug 2012 01:25:42 +0300 Subject: Ignore future message type in whisper. --- src/net/ea/chathandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp index 0ab2c903c..6aea0e2f8 100644 --- a/src/net/ea/chathandler.cpp +++ b/src/net/ea/chathandler.cpp @@ -154,6 +154,10 @@ void ChatHandler::processWhisper(Net::MessageIn &msg) return; std::string chatMsg = msg.readString(chatMsgLength); + // ignoring future whisper messages + if (chatMsg.find("\302\202G") == 0 || chatMsg.find("\302\202A") == 0) + return; + // remove first unicode space if this is may be whisper command. if (chatMsg.find("\302\202!") == 0) chatMsg = chatMsg.substr(2); -- cgit v1.2.3-60-g2f50