gameServer/Utils.hs
changeset 8777 cce79a042cfc
parent 8401 87410ae372f6
child 9086 77f471657230
--- a/gameServer/Utils.hs	Tue Mar 26 17:47:06 2013 -0400
+++ b/gameServer/Utils.hs	Tue Mar 26 17:52:27 2013 -0400
@@ -56,7 +56,7 @@
             t : replaceTeam tm ts
 
 illegalName :: B.ByteString -> Bool
-illegalName s = B.null s || B.all isSpace s || isSpace (B.head s) || isSpace (B.last s) || B.any isIllegalChar s
+illegalName s = B.null s || B.length s > 40 || B.all isSpace s || isSpace (B.head s) || isSpace (B.last s) || B.any isIllegalChar s
     where
         isIllegalChar c = c `List.elem` "$()*+?[]^{|}"