Make guest rejection error translatable
authorWuzzy <Wuzzy2@mail.ru>
Fri, 31 Aug 2018 23:49:32 +0200
changeset 13730 3106d630d6b5
parent 13729 69a913e064e3
child 13731 f4c8c6a174e8
Make guest rejection error translatable
gameServer/Actions.hs
--- a/gameServer/Actions.hs	Fri Aug 31 23:13:20 2018 +0200
+++ b/gameServer/Actions.hs	Fri Aug 31 23:49:32 2018 +0200
@@ -479,7 +479,7 @@
             c <- client's isChecker
             when (not b) $ (if c then checkerLogin else playerLogin) passwd isAdmin isContr
         Guest | isRegisteredUsersOnly si -> do
-            processAction $ ByeClient "Registered users only"
+            processAction $ ByeClient $ loc "This server only allows registered users to join."
             | otherwise -> do
             b <- isBanned
             c <- client's isChecker