gameServer/HWProtoCore.hs
changeset 8479 8d71109b04d2
parent 8478 d12531f09d59
child 8519 98e2dbdda8c0
--- a/gameServer/HWProtoCore.hs	Sat Feb 02 22:57:05 2013 +0400
+++ b/gameServer/HWProtoCore.hs	Mon Feb 04 00:13:55 2013 +0400
@@ -11,6 +11,7 @@
 import HWProtoNEState
 import HWProtoLobbyState
 import HWProtoInRoomState
+import HWProtoChecker
 import HandlerUtils
 import RoomsAndClients
 import Utils
@@ -48,8 +49,12 @@
 
 handleCmd cmd = do
     (ci, irnc) <- ask
-    if logonPassed (irnc `client` ci) then
-        handleCmd_loggedin cmd
+    let cl = irnc `client` ci
+    if logonPassed cl then
+        if isChecker cl then
+            handleCmd_checker cmd
+            else
+            handleCmd_loggedin cmd
         else
         handleCmd_NotEntered cmd