diff -r 1a1fb597da8f -r d8e606cf8ff5 QTfrontend/net/newnetclient.cpp --- 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;