requested change by andu. filtering out ignored player. lobby notice 1.0.0
authornemo
Sun, 24 Mar 2024 14:05:06 -0400
branch1.0.0
changeset 15993 64740eec84ad
parent 15992 524b0abb5b4c
child 15994 fcc98c953b5e
child 15995 4c523ed1d35c
requested change by andu. filtering out ignored player. lobby notice
QTfrontend/net/newnetclient.cpp
--- a/QTfrontend/net/newnetclient.cpp	Sat Mar 23 17:24:20 2024 -0400
+++ b/QTfrontend/net/newnetclient.cpp	Sun Mar 24 14:05:06 2024 -0400
@@ -948,8 +948,9 @@
 
             for(int i = 1; i < lst.size(); ++i)
             {
-                emit chatStringFromNet(tr("%1 *** %2 has joined the room").arg('\x03').arg(lst[i]));
                 m_playersModel->playerJoinedRoom(lst[i], isChief && (lst[i] != mynick));
+                if(!m_playersModel->isFlagSet(lst[i], PlayersListModel::Ignore))
+                        emit chatStringFromNet(tr("%1 *** %2 has joined the room").arg('\x03').arg(lst[i]));
             }
             return;
         }