gameServer/Actions.hs
changeset 8523 f13ae07d82d7
parent 8519 98e2dbdda8c0
child 8833 c13ebed437cb
child 8983 a25e18295959
equal deleted inserted replaced
8521:80229928563f 8523:f13ae07d82d7
   400             b <- isBanned
   400             b <- isBanned
   401             c <- client's isChecker
   401             c <- client's isChecker
   402             when (not b) $ (if c then checkerLogin else playerLogin) passwd isAdmin
   402             when (not b) $ (if c then checkerLogin else playerLogin) passwd isAdmin
   403         Guest -> do
   403         Guest -> do
   404             b <- isBanned
   404             b <- isBanned
       
   405             c <- client's isChecker
   405             when (not b) $
   406             when (not b) $
   406                 processAction JoinLobby
   407                 if c then
       
   408                     checkerLogin "" False
       
   409                     else
       
   410                     processAction JoinLobby
   407         Admin -> do
   411         Admin -> do
   408             mapM_ processAction [ModifyClient (\cl -> cl{isAdministrator = True}), JoinLobby]
   412             mapM_ processAction [ModifyClient (\cl -> cl{isAdministrator = True}), JoinLobby]
   409             chan <- client's sendChan
   413             chan <- client's sendChan
   410             processAction $ AnswerClients [chan] ["ADMIN_ACCESS"]
   414             processAction $ AnswerClients [chan] ["ADMIN_ACCESS"]
   411     where
   415     where