gameServer/Actions.hs
changeset 4923 c7829611c682
parent 4922 89777ce0d273
child 4932 f11d80bac7ed
--- a/gameServer/Actions.hs	Sat Feb 05 23:33:10 2011 +0300
+++ b/gameServer/Actions.hs	Sat Feb 05 23:37:25 2011 +0300
@@ -325,7 +325,7 @@
     case info of
         HasAccount passwd isAdmin -> do
             chan <- client's sendChan
-            mapM_ processAction [AnswerClients [chan] ["ASKPASSWORD"], ModifyClient (\c -> c{webPassword = passwd})]
+            mapM_ processAction [AnswerClients [chan] ["ASKPASSWORD"], ModifyClient (\c -> c{webPassword = passwd, isAdministrator = isAdmin})]
         Guest -> do
             processAction JoinLobby
         Admin -> do