From 486fc09eb779c9265299a937486d98f9ab036219 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Aug 2015 23:09:34 +0300 Subject: Add more checks for broken nicks. --- src/gui/windows/chatwindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index 1b1fb7f88..0ddc6e30f 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -1557,7 +1557,12 @@ bool ChatWindow::resortChatLog(std::string line, if (tmpNick.find("#") != std::string::npos || tmpNick.find(":") != std::string::npos || tmpNick.find("%") != std::string::npos || - tmpNick.find("@") != std::string::npos) + tmpNick.find("@") != std::string::npos || + tmpNick.size() < 4 || + tmpNick[0] == '@' || + tmpNick[0] == '/' || + tmpNick[0] == '!' + ) { replaceAll(tmpNick, "#", "_"); replaceAll(tmpNick, "%", "_"); -- cgit v1.2.3-60-g2f50