summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-30 01:42:57 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-30 01:42:57 +0300
commit680907bf9095518b99799860d647756c1ee72545 (patch)
treee72727e774a95fc1731119cf07b77a22ab6e7a03 /src/gui
parent525a885c9cb55038edf5ab9215e25f908beb22af (diff)
downloadplus-680907bf9095518b99799860d647756c1ee72545.tar.gz
plus-680907bf9095518b99799860d647756c1ee72545.tar.bz2
plus-680907bf9095518b99799860d647756c1ee72545.tar.xz
plus-680907bf9095518b99799860d647756c1ee72545.zip
Change how report about broken nicks.
To broken message at start added "brokent nick: " and message marked like from server.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/chatwindow.cpp10
1 files 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)