summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-09 02:21:57 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-09 02:21:57 +0300
commit73ff0a5f6b3fe6b26df14eb1dae413a26d002bbb (patch)
tree974af7cba7017413f8aa0941e32c8a4cd7cec636
parent7b06428d3a428828d15a758a4abaee14bfad58a9 (diff)
downloadplus-73ff0a5f6b3fe6b26df14eb1dae413a26d002bbb.tar.gz
plus-73ff0a5f6b3fe6b26df14eb1dae413a26d002bbb.tar.bz2
plus-73ff0a5f6b3fe6b26df14eb1dae413a26d002bbb.tar.xz
plus-73ff0a5f6b3fe6b26df14eb1dae413a26d002bbb.zip
Really remove nicks if need. Also remove colors if need.
-rw-r--r--src/gui/chatwindow.cpp6
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