diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-26 20:36:01 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-26 22:12:40 +0200 |
commit | b26e72ed5e62e9079319e14ed82734f0659db3c4 (patch) | |
tree | cc093e7c2a81a765c936b4db493e8c10eda5a4ee /src | |
parent | e187567475275835796e06e0b102f23a18510832 (diff) | |
download | plus-b26e72ed5e62e9079319e14ed82734f0659db3c4.tar.gz plus-b26e72ed5e62e9079319e14ed82734f0659db3c4.tar.bz2 plus-b26e72ed5e62e9079319e14ed82734f0659db3c4.tar.xz plus-b26e72ed5e62e9079319e14ed82734f0659db3c4.zip |
Remove colors from nick if nick not real nick in whisper.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/chat.cpp | 5 |
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 |