gameServer/HandlerUtils.hs
changeset 3543 d84a93b985c1
parent 3542 f216b24aeb7f
child 3568 ae89cf0735dc
--- a/gameServer/HandlerUtils.hs	Wed Jun 23 22:17:27 2010 +0400
+++ b/gameServer/HandlerUtils.hs	Wed Jun 23 22:21:13 2010 +0400
@@ -21,6 +21,12 @@
     let ri = clientRoom rnc ci
     return $ map (sendChan . client rnc) $ filter (/= ci) (roomClients rnc ri)
 
+roomClientsChans :: Reader (ClientIndex, IRnC) [ClientChan]
+roomClientsChans = do
+    (ci, rnc) <- ask
+    let ri = clientRoom rnc ci
+    return $ map (sendChan . client rnc) (roomClients rnc ri)
+
 thisClientChans :: Reader (ClientIndex, IRnC) [ClientChan]
 thisClientChans = do
     (ci, rnc) <- ask