summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-12-10 02:50:15 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-12-10 02:50:15 +0000
commit2820f4d4329f29fc75c85d6b2195fd42b97fd457 (patch)
tree2e48985cf1fddad7b37afcc3eefaeb75ed1d1ee3 /src/gui
parente961be5bfd29ad3f44f948828981cb3ab07f25a7 (diff)
downloadmana-client-2820f4d4329f29fc75c85d6b2195fd42b97fd457.tar.gz
mana-client-2820f4d4329f29fc75c85d6b2195fd42b97fd457.tar.bz2
mana-client-2820f4d4329f29fc75c85d6b2195fd42b97fd457.tar.xz
mana-client-2820f4d4329f29fc75c85d6b2195fd42b97fd457.zip
Added an option to show log messages in the chat console.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/chat.cpp3
-rw-r--r--src/gui/chat.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 877866df..2e7e109b 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -143,6 +143,9 @@ ChatWindow::chatLog(std::string line, int own)
tmp.nick += CAT_IS;
lineColor = "##5"; // Equiv. to BrowserBox::YELLOW
break;
+ case BY_LOGGER:
+ lineColor = "##8"; // Equiv. to BrowserBox::GREY
+ break;
}
// Get the current system time
diff --git a/src/gui/chat.h b/src/gui/chat.h
index 9c57f227..b857f4b4 100644
--- a/src/gui/chat.h
+++ b/src/gui/chat.h
@@ -46,6 +46,8 @@ class ScrollArea;
#define ACT_WHISPER 4 // getting whispered at
#define ACT_IS 5 // equivalent to "/me" in irc
+#define BY_LOGGER 6
+
#define IS_ANNOUNCE "/announce "
#define IS_ANNOUNCE_LENGTH 10
#define IS_HELP "/help"