fix the bans counter, it wasn't updated after filtering mutes.

This commit is contained in:
Elián Hanisch 2011-12-22 20:55:20 -03:00
parent aa88d5529e
commit 7f104934ab

View File

@ -419,9 +419,10 @@ if not bans:
if not (isOn('mutes') or isOn('oldmutes')):
bans = filter(lambda x: filterMutes(x), bans)
ban_count = len(bans)
elif not (isOn('bans') or isOn('oldbans')):
bans = filter(lambda x: not filterMutes(x), bans)
ban_count = len(bans)
# Sort the bans
def _sortf(x1,x2,field):