summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/chat.cpp8
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();
}