changeset 8780 | 486edbbe72b5 |
parent 8401 | 87410ae372f6 |
child 9086 | 77f471657230 |
--- a/gameServer/Utils.hs Fri Mar 22 22:42:41 2013 +0100 +++ b/gameServer/Utils.hs Sat Mar 23 21:32:14 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` "$()*+?[]^{|}"