summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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