Change misleading server error message about nicknames
authorWuzzy <Wuzzy2@mail.ru>
Mon, 05 Mar 2018 19:26:46 +0100
changeset 13081 dce9f0b84a18
parent 13080 23a498a2b5b8
child 13082 aa9e871f9685
Change misleading server error message about nicknames
gameServer/HWProtoNEState.hs
--- a/gameServer/HWProtoNEState.hs	Mon Mar 05 19:21:58 2018 +0100
+++ b/gameServer/HWProtoNEState.hs	Mon Mar 05 19:26:46 2018 +0100
@@ -34,7 +34,7 @@
 handleCmd_NotEntered ["NICK", newNick] = do
     (ci, irnc) <- ask
     let cl = irnc `client` ci
-    if not . B.null $ nick cl then return [ProtocolError $ loc "Nickname already taken."]
+    if not . B.null $ nick cl then return [ProtocolError $ loc "Nickname already provided."]
         else
         if illegalName newNick then return [ByeClient $ loc "Illegal nickname! Nicknames must be between 1-40 characters long, must not have a trailing or leading space and must not have any of these characters: $()*+?[]^{|}"]
             else