# HG changeset patch # User unc0rr # Date 1295725175 -10800 # Node ID 652139f230c78e600c0595e33b82fcff7901d41d # Parent 64572716e0977eb4a822c6e756fe6e3bcafa53ed# Parent e604ee83e34f0b256efd6bdb4df8e26328cf2fd4 merge diff -r e604ee83e34f -r 652139f230c7 gameServer/Utils.hs --- a/gameServer/Utils.hs Sat Jan 22 19:40:57 2011 +0100 +++ b/gameServer/Utils.hs Sat Jan 22 22:39:35 2011 +0300 @@ -91,7 +91,7 @@ t : replaceTeam team teams illegalName :: String -> Bool -illegalName = all isSpace +illegalName s = null s || all isSpace s || isSpace (head s) || isSpace (last s) protoNumber2ver :: Word16 -> String protoNumber2ver 17 = "0.9.7-dev"