summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-26 20:36:01 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-26 22:12:40 +0200
commitb26e72ed5e62e9079319e14ed82734f0659db3c4 (patch)
treecc093e7c2a81a765c936b4db493e8c10eda5a4ee /src/gui/chat.cpp
parente187567475275835796e06e0b102f23a18510832 (diff)
downloadmv-b26e72ed5e62e9079319e14ed82734f0659db3c4.tar.gz
mv-b26e72ed5e62e9079319e14ed82734f0659db3c4.tar.bz2
mv-b26e72ed5e62e9079319e14ed82734f0659db3c4.tar.xz
mv-b26e72ed5e62e9079319e14ed82734f0659db3c4.zip
Remove colors from nick if nick not real nick in whisper.
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index e42b4b1bb..d3ebb3955 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -913,8 +913,9 @@ void ChatWindow::whisper(const std::string &nick,
{
nick2 = msg.substr(0, idx);
msg = msg.substr(idx + 1);
- trim(nick2);
- trim(msg);
+ nick2 = removeColors(nick2);
+ nick2 = trim(nick2);
+ msg = trim(msg);
tab->chatLog(nick2, msg);
}
else