QTfrontend/ui/widget/chatwidget.cpp
changeset 13851 d8e606cf8ff5
parent 13849 184584b82c4c
child 13915 6c8d4e140f27
--- a/QTfrontend/ui/widget/chatwidget.cpp	Fri Oct 05 04:57:03 2018 +0200
+++ b/QTfrontend/ui/widget/chatwidget.cpp	Fri Oct 05 13:37:49 2018 +0200
@@ -541,20 +541,8 @@
 
     // Normal quit
     if (message.isEmpty() || message == "bye")
+    {
         printChatString(nick, QString("*** ") + tr("%1 has left").arg(linkedNick(nick)), "Leave", false);
-    // Quit with custom player message
-    else if (message.startsWith("User quit: ") && message.length() > 11)
-    {
-        QString playerMessage = QString(message);
-        playerMessage.remove(0, 11);
-        printChatString(nick, QString("*** ") + tr("%1 has left (message: \"%2\")").arg(linkedNick(nick)).arg(playerMessage.toHtmlEscaped()), "Leave", false);
-    }
-    // Quit with special PART message
-    else if (message.startsWith("part: ") && message.length() > 6)
-    {
-        QString playerMessage = QString(message);
-        playerMessage.remove(0, 6);
-        printChatString(nick, QString("*** ") + tr("%1 has left (%2)").arg(linkedNick(nick).arg(playerMessage.toHtmlEscaped())), "Leave", false);
     }
     // Quit with additional server message (i.e. ping timeout)
     else