gameServer/Actions.hs
changeset 9662 47dbd9601342
parent 9528 9351e96990ae
child 9702 27006953d901
--- a/gameServer/Actions.hs	Thu Oct 31 23:27:06 2013 +0400
+++ b/gameServer/Actions.hs	Thu Oct 31 23:27:46 2013 +0400
@@ -684,7 +684,16 @@
 processAction CheckRecord = do
     p <- client's clientProto
     c <- client's sendChan
-    (cinfo, l) <- io $ loadReplay (fromIntegral p)
+    ri <- clientRoomA
+    rnc <- gets roomsClients
+
+    blackList <- liftM (map (recordFileName . fromJust . checkInfo) . filter (isJust . checkInfo)) allClientsS
+
+    readyCheckersIds <- io $ do
+        allci <- allClientsM rnc
+        filterM (client'sM rnc (isJust . checkInfo)) allci
+
+    (cinfo, l) <- io $ loadReplay (fromIntegral p) blackList
     when (not . null $ l) $
         mapM_ processAction [
             AnswerClients [c] ("REPLAY" : l)