merge the kick notice suppression
authornemo
Sun, 24 Mar 2024 14:34:27 -0400
changeset 16025 19927b70588c
parent 16024 4c523ed1d35c (current diff)
parent 16023 fcc98c953b5e (diff)
child 16026 7c8697fa019f
merge the kick notice suppression
QTfrontend/net/newnetclient.cpp
--- a/QTfrontend/net/newnetclient.cpp	Sun Mar 24 14:33:57 2024 -0400
+++ b/QTfrontend/net/newnetclient.cpp	Sun Mar 24 14:34:27 2024 -0400
@@ -963,12 +963,14 @@
                 return;
             }
 
-            if (lst.size() < 3)
-                emit chatStringFromNet(tr("%1 *** %2 has left").arg('\x03').arg(lst[1]));
-            else
-            {
-                QString leaveMsg = QString(lst[2]);
-                emit chatStringFromNet(tr("%1 *** %2 has left (%3)").arg('\x03').arg(lst[1]).arg(HWApplication::translate("server", leaveMsg.toLatin1().constData())));
+            if(!m_playersModel->isFlagSet(lst[1], PlayersListModel::Ignore)) {
+				if (lst.size() < 3)
+					emit chatStringFromNet(tr("%1 *** %2 has left").arg('\x03').arg(lst[1]));
+				else
+				{
+					QString leaveMsg = QString(lst[2]);
+					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;