projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53eedd3
)
Change way commands are displayed in chat window
author
Giuseppe Bilotta
<giuseppe.bilotta@gmail.com>
Mon, 22 Aug 2011 11:43:53 +0000
(13:43 +0200)
committer
Giuseppe Bilotta
<giuseppe.bilotta@gmail.com>
Mon, 22 Aug 2011 11:43:53 +0000
(13:43 +0200)
src/client.h
patch
|
blob
|
history
diff --git
a/src/client.h
b/src/client.h
index 963eb67025ba2e1bf25b04de97f8f739dc0c6d6d..1a7ef924ac53d7b9085c4a75e59e480dd60f9761 100644
(file)
--- 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);