diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-01 21:58:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-01 21:58:45 +0300 |
commit | f0ee764c7fa5bb65b9756d82372bf98c5c1e4223 (patch) | |
tree | 57b206627041a55bc8eae0744576037371e68460 /src/net/tmwa/chathandler.cpp | |
parent | 11cda679c74cf5c0db0cdc8eb1f3ff7d1d667f9b (diff) | |
download | manaverse-f0ee764c7fa5bb65b9756d82372bf98c5c1e4223.tar.gz manaverse-f0ee764c7fa5bb65b9756d82372bf98c5c1e4223.tar.bz2 manaverse-f0ee764c7fa5bb65b9756d82372bf98c5c1e4223.tar.xz manaverse-f0ee764c7fa5bb65b9756d82372bf98c5c1e4223.zip |
Add ability to receive buy/sell requests with invisible space at first.
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r-- | src/net/tmwa/chathandler.cpp | 2 |
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") { |