diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-22 13:43:53 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-22 13:43:53 +0200 |
commit | 9c94538fb7a7d7712d8da21d16790359a853f575 (patch) | |
tree | f8a8c78746e9583b283d7749a035fa0dac973924 /src | |
parent | 53eedd3ba4029d7f4154477c3492748bb4f6e4e5 (diff) | |
download | minetest-9c94538fb7a7d7712d8da21d16790359a853f575.tar.gz minetest-9c94538fb7a7d7712d8da21d16790359a853f575.tar.bz2 minetest-9c94538fb7a7d7712d8da21d16790359a853f575.zip |
Change way commands are displayed in chat window
Diffstat (limited to 'src')
-rw-r--r-- | src/client.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h index 963eb6702..1a7ef924a 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); |