QTfrontend/net/newnetclient.cpp
changeset 13867 d8e606cf8ff5
parent 13695 e529a34872f9
child 13990 4d761adb4e6c
--- a/QTfrontend/net/newnetclient.cpp	Fri Oct 05 04:57:03 2018 +0200
+++ b/QTfrontend/net/newnetclient.cpp	Fri Oct 05 13:37:49 2018 +0200
@@ -75,7 +75,7 @@
     if (m_game_connected)
     {
         RawSendNet(QString("QUIT%1").arg(delimiter));
-        emit disconnected(tr("User quit"));
+        emit disconnected("");
     }
     NetSocket.flush();
 }
@@ -892,18 +892,7 @@
             else
             {
                 QString leaveMsg = QString(lst[2]);
-                if (leaveMsg.startsWith("User quit: "))
-                {
-                    leaveMsg.remove(0, 11);
-                    emit chatStringFromNet(tr("%1 *** %2 has left (message: \"%3\")").arg('\x03').arg(lst[1]).arg(leaveMsg));
-                }
-                else if (leaveMsg.startsWith("part: "))
-                {
-                    leaveMsg.remove(0, 6);
-                    emit chatStringFromNet(tr("%1 *** %2 has left (%3)").arg('\x03').arg(lst[1]).arg(leaveMsg));
-                }
-                else
-                    emit chatStringFromNet(tr("%1 *** %2 has left (%3)").arg('\x03').arg(lst[1]).arg(HWApplication::translate("server", leaveMsg.toLatin1().constData())));
+                emit chatStringFromNet(tr("%1 *** %2 has left (%3)").arg('\x03').arg(lst[1]).arg(HWApplication::translate("server", leaveMsg.toLatin1().constData())));
             }
             m_playersModel->playerLeftRoom(lst[1]);
             return;