diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-09 02:21:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-09 02:21:57 +0300 |
commit | 73ff0a5f6b3fe6b26df14eb1dae413a26d002bbb (patch) | |
tree | 974af7cba7017413f8aa0941e32c8a4cd7cec636 /src | |
parent | 7b06428d3a428828d15a758a4abaee14bfad58a9 (diff) | |
download | manaplus-73ff0a5f6b3fe6b26df14eb1dae413a26d002bbb.tar.gz manaplus-73ff0a5f6b3fe6b26df14eb1dae413a26d002bbb.tar.bz2 manaplus-73ff0a5f6b3fe6b26df14eb1dae413a26d002bbb.tar.xz manaplus-73ff0a5f6b3fe6b26df14eb1dae413a26d002bbb.zip |
Really remove nicks if need. Also remove colors if need.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/chatwindow.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index 1142636b4..47db83c75 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -940,12 +940,16 @@ void ChatWindow::whisper(const std::string &nick, msg = msg.substr(idx + 1); nick2 = removeColors(nick2); nick2 = trim(nick2); + if (config.getBoolValue("removeColors")) + msg = removeColors(msg); msg = trim(msg); tab->chatLog(nick2, msg); } else { - tab->chatLog(nick, mes); + if (config.getBoolValue("removeColors")) + msg = removeColors(msg); + tab->chatLog(msg, BY_SERVER); } } else |