gameServer/Actions.hs
changeset 10014 56d2f2d5aad8
parent 9973 7589978c9912
child 10015 4feced261c68
--- a/gameServer/Actions.hs	Sat Jan 18 18:20:43 2014 +0100
+++ b/gameServer/Actions.hs	Sun Jan 19 00:18:28 2014 +0400
@@ -454,8 +454,14 @@
     checkerLogin _ False _ = processAction $ ByeClient $ loc "No checker rights"
     checkerLogin p True _ = do
         wp <- client's webPassword
-        processAction $
-            if wp == p then ModifyClient $ \c -> c{logonPassed = True} else ByeClient $ loc "Authentication failed"
+        chan <- client's sendChan
+        mapM_ processAction $
+            if wp == p then 
+                [ModifyClient $ \c -> c{logonPassed = True}
+                , AnswerClients [chan] ["LOGONPASSED"]
+                ]
+                else 
+                [ByeClient $ loc "Authentication failed"]
     playerLogin p a contr = do
         chan <- client's sendChan
         mapM_ processAction [