diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-25 22:12:48 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-25 22:12:48 -0700 |
commit | cd0bbf213902665f795d10a38c4f847f681c290c (patch) | |
tree | 2a589755372c85957a3ae0687172c230a61b3dfb /src | |
parent | c40a6d645c4721077313145cc5f692d19c99508a (diff) | |
download | mana-cd0bbf213902665f795d10a38c4f847f681c290c.tar.gz mana-cd0bbf213902665f795d10a38c4f847f681c290c.tar.bz2 mana-cd0bbf213902665f795d10a38c4f847f681c290c.tar.xz mana-cd0bbf213902665f795d10a38c4f847f681c290c.zip |
Changed it so that " :" messages are properly recognized as being from
the server in the chat log.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/chat.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index d1069d13..1a3cb2a4 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -192,7 +192,13 @@ void ChatWindow::chatLog(std::string line, int own, bool ignoreRecord) break; } - if (tmp.nick == ": " && tmp.text.substr(0, 17) == "Visible GM status") + if (tmp.nick == ": ") + { + tmp.nick = ""; + lineColor = "##S"; + } + + if (tmp.nick == "" && tmp.text.substr(0, 17) == "Visible GM status") { player_node->setGM(); } |