merge the kick notice suppression
authornemo
Sun, 24 Mar 2024 14:34:27 -0400
changeset 15996 19927b70588c
parent 15995 4c523ed1d35c (current diff)
parent 15994 fcc98c953b5e (diff)
child 15997 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;