--- 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) $