gameServer/HWProtoNEState.hs
changeset 4942 1c85a8e6e11c
parent 4932 f11d80bac7ed
child 4975 31da8979e5b1
--- a/gameServer/HWProtoNEState.hs	Tue Feb 15 21:12:22 2011 +0300
+++ b/gameServer/HWProtoNEState.hs	Wed Feb 16 12:07:30 2011 +0300
@@ -18,7 +18,7 @@
     let cl = irnc `client` ci
     if not . B.null $ nick cl then return [ProtocolError "Nickname already chosen"]
         else
-        if haveSameNick irnc then return [NoticeMessage NickAlreadyInUse]
+        if haveSameNick irnc then if clientProto cl < 38 then return [ByeClient "Nickname is already in use"] else return [NoticeMessage NickAlreadyInUse]
             else
             if illegalName newNick then return [ByeClient "Illegal nickname"]
                 else