gameServer/Utils.hs
changeset 14064 12bfae554de5
parent 13673 1aa5e884326a
child 14287 9f0d81213d65
--- a/gameServer/Utils.hs	Thu Nov 01 20:29:42 2018 +0100
+++ b/gameServer/Utils.hs	Thu Nov 01 22:54:01 2018 +0100
@@ -79,7 +79,7 @@
 illegalName b = B.null b || length s > 40 || all isSpace s || isSpace (head s) || isSpace (last s) || any isIllegalChar s
     where
         s = UTF8.toString b
-        isIllegalChar c = c `List.elem` ("$()*+?[]^{|}\x7F" ++ ['\x00'..'\x1F'])
+        isIllegalChar c = c `List.elem` ("$()*+?[]^{|}\x7F" ++ ['\x00'..'\x1F'] ++ ['\xFFF0'..'\xFFFF'])
 
 protoNumber2ver :: Word16 -> B.ByteString
 protoNumber2ver v = Map.findWithDefault "Unknown" v vermap