# HG changeset patch # User unc0rr # Date 1354286785 -14400 # Node ID 0bccee1d31da77ecae85955174dfbf892831509d # Parent 0ea76ea45e6ac621bd06fbabcbbac8b24094143b Case insensitive test for banned nickname diff -r 0ea76ea45e6a -r 0bccee1d31da gameServer/Actions.hs --- a/gameServer/Actions.hs Fri Nov 30 18:43:43 2012 +0400 +++ b/gameServer/Actions.hs Fri Nov 30 18:46:25 2012 +0400 @@ -572,7 +572,7 @@ checkNotExpired testTime (BanByIP _ _ time) = testTime `diffUTCTime` time <= 0 checkNotExpired testTime (BanByNick _ _ time) = testTime `diffUTCTime` time <= 0 checkBan ip _ (BanByIP bip _ _) = bip `B.isPrefixOf` ip - checkBan _ n (BanByNick bn _ _) = bn == n + checkBan _ n (BanByNick bn _ _) = caseInsensitiveCompare bn n getBanReason (BanByIP _ msg _) = msg getBanReason (BanByNick _ msg _) = msg