From f0ee764c7fa5bb65b9756d82372bf98c5c1e4223 Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Fri, 1 Apr 2011 21:58:45 +0300
Subject: Add ability to receive buy/sell requests with invisible space at
 first.

---
 src/net/tmwa/chathandler.cpp | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src')

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")
             {
-- 
cgit v1.2.3-70-g09d2