gameServer/Actions.hs
changeset 15788 acf70c44065b
parent 15699 27eb5abd5058
child 15878 fc3cb23fd26f
equal deleted inserted replaced
15787:8bb050e8e40f 15788:acf70c44065b
   127     when loggedIn $ processAction $ AnswerClients clientsChans ["LOBBY:LEFT", clNick, msg]
   127     when loggedIn $ processAction $ AnswerClients clientsChans ["LOBBY:LEFT", clNick, msg]
   128 
   128 
   129     mapM_ processAction
   129     mapM_ processAction
   130         [
   130         [
   131         AnswerClients [chan] ["BYE", msg]
   131         AnswerClients [chan] ["BYE", msg]
   132         , ModifyClient (\c -> c{nick = "", isVisible = False}) -- this will effectively hide client from others while he isn't deleted from list
   132         , ModifyClient (\c -> c{nick = "", isVisible = False}) -- this will effectively hide client from others while it isn't deleted from list
   133         ]
   133         ]
   134 
   134 
   135     s <- get
   135     s <- get
   136     put $! s{removedClients = ci `Set.insert` removedClients s}
   136     put $! s{removedClients = ci `Set.insert` removedClients s}
   137 
   137