summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/windows/chatwindow.cpp7
1 files changed, 6 insertions, 1 deletions
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, "%", "_");