gameServer/HWProtoChecker.hs
changeset 9433 f0a8ac191839
parent 9109 878f06e9c484
child 9444 30748b1d9ec7
--- a/gameServer/HWProtoChecker.hs	Tue Aug 27 17:22:07 2013 +0400
+++ b/gameServer/HWProtoChecker.hs	Wed Aug 28 23:11:05 2013 +0400
@@ -11,14 +11,14 @@
 
 handleCmd_checker :: CmdHandler
 
-handleCmd_checker ["READY"] = return [CheckRecord]
+handleCmd_checker ["READY"] = return [ModifyClient $ \c -> c{isReady = True}, CheckRecord]
 
 handleCmd_checker ["CHECKED", "FAIL", msg] = do
     isChecking <- liftM (isJust . checkInfo) thisClient
     if not isChecking then
         return []
         else
-        return [CheckFailed msg, ModifyClient $ \c -> c{checkInfo = Nothing}]
+        return [CheckFailed msg, ModifyClient $ \c -> c{isReady = False, checkInfo = Nothing}]
 
 
 handleCmd_checker ("CHECKED" : "OK" : info) = do
@@ -26,6 +26,6 @@
     if not isChecking then
         return []
         else
-        return [CheckSuccess info, ModifyClient $ \c -> c{checkInfo = Nothing}]
+        return [CheckSuccess info, ModifyClient $ \c -> c{isReady = False, checkInfo = Nothing}]
 
 handleCmd_checker _ = return [ProtocolError "Unknown command"]