summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-01 21:58:45 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-01 21:58:45 +0300
commitf0ee764c7fa5bb65b9756d82372bf98c5c1e4223 (patch)
tree57b206627041a55bc8eae0744576037371e68460 /src
parent11cda679c74cf5c0db0cdc8eb1f3ff7d1d667f9b (diff)
downloadmv-f0ee764c7fa5bb65b9756d82372bf98c5c1e4223.tar.gz
mv-f0ee764c7fa5bb65b9756d82372bf98c5c1e4223.tar.bz2
mv-f0ee764c7fa5bb65b9756d82372bf98c5c1e4223.tar.xz
mv-f0ee764c7fa5bb65b9756d82372bf98c5c1e4223.zip
Add ability to receive buy/sell requests with invisible space at first.
Diffstat (limited to 'src')
-rw-r--r--src/net/tmwa/chathandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp
index cd02643a3..5bd3df339 100644
--- a/src/net/tmwa/chathandler.cpp
+++ b/src/net/tmwa/chathandler.cpp
@@ -134,6 +134,8 @@ void ChatHandler::handleMessage(Net::MessageIn &msg)
break;
chatMsg = msg.readString(chatMsgLength);
+ if (chatMsg.find("\302\202!") == 0)
+ chatMsg = chatMsg.substr(2);
if (nick != "Server")
{