Change way commands are displayed in chat window
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 22 Aug 2011 11:43:53 +0000 (13:43 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 22 Aug 2011 11:43:53 +0000 (13:43 +0200)
src/client.h

index 963eb67025ba2e1bf25b04de97f8f739dc0c6d6d..1a7ef924ac53d7b9085c4a75e59e480dd60f9761 100644 (file)
@@ -270,6 +270,12 @@ public:
 
        void addChatMessage(const std::wstring &message)
        {
+               if (message[0] == L'/') {
+                       m_chat_queue.push_back(
+                               (std::wstring)L"issued command: "+message);
+                       return;
+               }
+
                //JMutexAutoLock envlock(m_env_mutex); //bulk comment-out
                LocalPlayer *player = m_env.getLocalPlayer();
                assert(player != NULL);