Fix server crasher
authorunc0rr
Sat, 02 Feb 2013 00:47:34 +0400
changeset 8476 61d7269f16be
parent 8474 f6abe50095d2
child 8477 330b0b8846cf
Fix server crasher
gameServer/Actions.hs
--- a/gameServer/Actions.hs	Sat Feb 02 00:33:27 2013 +0400
+++ b/gameServer/Actions.hs	Sat Feb 02 00:47:34 2013 +0400
@@ -430,7 +430,7 @@
     uid <- client's clUID
     -- allow multiple checker logins
     haveSameNick <- liftM (not . null . tail . filter (\c -> (not $ isChecker c) && caseInsensitiveCompare (nick c) n)) allClientsS
-    if haveSameNick && (not checker) then
+    if (not checker) && haveSameNick then
         if p < 38 then
             processAction $ ByeClient $ loc "Nickname is already in use"
             else