From 680907bf9095518b99799860d647756c1ee72545 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 30 Jul 2015 01:42:57 +0300 Subject: Change how report about broken nicks. To broken message at start added "brokent nick: " and message marked like from server. --- src/gui/windows/chatwindow.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index c55662eb6..1b1fb7f88 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -1561,13 +1561,9 @@ bool ChatWindow::resortChatLog(std::string line, { replaceAll(tmpNick, "#", "_"); replaceAll(tmpNick, "%", "_"); - const std::string errMsg = strprintf( - // TRANSLATORS: error message - _("Broken nick detected: %s"), tmpNick.c_str()); - if (debugChatTab) - debugChatTab->chatLog(errMsg, ChatMsgType::BY_SERVER); - else - localChatTab->chatLog(errMsg, ChatMsgType::BY_SERVER); + // TRANSLATORS: error message + line = _("Broken nick detected: ") + line; + own = ChatMsgType::BY_SERVER; } const size_t idx = line.find(": \302\202"); if (idx == idx2) -- cgit v1.2.3-70-g09d2