From cd0bbf213902665f795d10a38c4f847f681c290c Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sun, 25 Jan 2009 22:12:48 -0700 Subject: Changed it so that " :" messages are properly recognized as being from the server in the chat log. Signed-off-by: Ira Rice --- src/gui/chat.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.3-60-g2f50