gameServer/Actions.hs
changeset 11465 0ae2e4c13bd1
parent 11463 fe46826de291
child 11575 db7743e2fad1
--- a/gameServer/Actions.hs	Mon Dec 28 09:06:29 2015 +0300
+++ b/gameServer/Actions.hs	Mon Dec 28 21:21:02 2015 +0300
@@ -466,12 +466,15 @@
 
 
 processAction (ProcessAccountInfo info) = do
+    si <- gets serverInfo
     case info of
         HasAccount passwd isAdmin isContr -> do
             b <- isBanned
             c <- client's isChecker
             when (not b) $ (if c then checkerLogin else playerLogin) passwd isAdmin isContr
-        Guest -> do
+        Guest | isRegisteredUsersOnly si -> do
+            processAction $ ByeClient "Registered users only"
+            | otherwise -> do
             b <- isBanned
             c <- client's isChecker
             when (not b) $