QTfrontend/net/newnetclient.cpp
changeset 13695 e529a34872f9
parent 13692 70c8feb81d35
child 13846 d8e606cf8ff5
--- a/QTfrontend/net/newnetclient.cpp	Sat Aug 25 18:21:37 2018 +0200
+++ b/QTfrontend/net/newnetclient.cpp	Sat Aug 25 19:07:17 2018 +0200
@@ -383,16 +383,18 @@
 
         QString action;
         QString message;
-        // Fake nicks are nicks used for messages from the server with nicks like
-        // [server], [random], etc.
-        // The '[' character is not allowed in real nicks.
-        bool isFakeNick = lst[1].startsWith('[');
-        if(!isFakeNick)
+        // '[' is a special character used in fake nick names of server messages.
+        // Those are supposed to be translated
+        if(!lst[1].startsWith('['))
         {
             // Normal message
             message = lst[2];
-            // Check for action (/me command)
-            action = HWProto::chatStringToAction(message);
+            // Another kind of fake nick. '(' nicks are server messages, but they must not be translated
+            if(!lst[1].startsWith('('))
+            {
+                // Check for action (/me command)
+                action = HWProto::chatStringToAction(message);
+            }
         }
         else
         {