From: Giuseppe Bilotta Date: Mon, 22 Aug 2011 11:43:53 +0000 (+0200) Subject: Change way commands are displayed in chat window X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=9c94538fb7a7d7712d8da21d16790359a853f575;p=zefram%2Fminetest%2Fminetest_engine.git Change way commands are displayed in chat window --- diff --git a/src/client.h b/src/client.h index 963eb670..1a7ef924 100644 --- a/src/client.h +++ b/src/client.h @@ -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);