QTfrontend/newnetclient.cpp
changeset 4958 84afe376a3b3
parent 4917 8ff92bdc9f98
child 4963 59c2489afcbd
equal deleted inserted replaced
4956:48e1f9a04c28 4958:84afe376a3b3
    27 #include "gameuiconfig.h"
    27 #include "gameuiconfig.h"
    28 #include "game.h"
    28 #include "game.h"
    29 #include "gamecfgwidget.h"
    29 #include "gamecfgwidget.h"
    30 #include "teamselect.h"
    30 #include "teamselect.h"
    31 #include "misc.h"
    31 #include "misc.h"
       
    32 /* only to get the ignoreList from the chat widget */
       
    33 #include "hwform.h"
       
    34 #include "pages.h"
       
    35 #include "chatwidget.h"
    32 
    36 
    33 char delimeter='\n';
    37 char delimeter='\n';
    34 
    38 
    35 HWNewNet::HWNewNet(GameUIConfig * config, GameCFGWidget* pGameCFGWidget, TeamSelWidget* pTeamSelWidget) :
    39 HWNewNet::HWNewNet(GameUIConfig * config, GameCFGWidget* pGameCFGWidget, TeamSelWidget* pTeamSelWidget) :
    36   config(config),
    40   config(config),
   396                 emit EnteredGame();
   400                 emit EnteredGame();
   397                 emit roomMaster(isChief);
   401                 emit roomMaster(isChief);
   398                 if (isChief)
   402                 if (isChief)
   399                     emit configAsked();
   403                     emit configAsked();
   400             }
   404             }
   401             emit nickAdded(lst[i], isChief && (lst[i] != mynick));
   405             if (lst[i] != mynick && isChief && config->Form->ui.pageRoomsList->chatWidget->ignoreList.contains(lst[i], Qt::CaseInsensitive))
   402             emit chatStringFromNet(tr("%1 *** %2 has joined the room").arg('\x03').arg(lst[i]));
   406             {
       
   407                 kickPlayer(lst[i]);
       
   408             }
       
   409             else
       
   410             {
       
   411                 emit nickAdded(lst[i], isChief && (lst[i] != mynick));
       
   412                 emit chatStringFromNet(tr("%1 *** %2 has joined the room").arg('\x03').arg(lst[i]));
       
   413             }
   403         }
   414         }
   404         return;
   415         return;
   405     }
   416     }
   406 
   417 
   407     if(lst[0] == "LOBBY:JOINED") {
   418     if(lst[0] == "LOBBY:JOINED") {