From b26e72ed5e62e9079319e14ed82734f0659db3c4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 26 Mar 2011 20:36:01 +0200 Subject: Remove colors from nick if nick not real nick in whisper. --- src/gui/chat.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2