gameServer/Actions.hs
changeset 14380 8ad85859dd3f
parent 14359 5e28098fb593
child 14684 bc267f6b29d7
equal deleted inserted replaced
14379:b33127bc2424 14380:8ad85859dd3f
   883     actions <- liftIO $ withRoomsAndClients rnc (\irnc -> runReader (handleCmd cmd) (ci, irnc))
   883     actions <- liftIO $ withRoomsAndClients rnc (\irnc -> runReader (handleCmd cmd) (ci, irnc))
   884     forM_ (actions `deepseq` actions) processAction
   884     forM_ (actions `deepseq` actions) processAction
   885 
   885 
   886 processAction CheckVotes =
   886 processAction CheckVotes =
   887     checkVotes >>= mapM_ processAction
   887     checkVotes >>= mapM_ processAction
       
   888 
       
   889 processAction (ShowRegisteredOnlyState chans) = do
       
   890     si <- gets serverInfo
       
   891     processAction $ AnswerClients chans
       
   892         ["CHAT", nickServer,
       
   893         if isRegisteredUsersOnly si then
       
   894             loc "This server no longer allows unregistered players to join."
       
   895         else
       
   896             loc "This server now allows unregistered players to join."
       
   897         ]