AttackProtector: Fix previous commit.

master
Valentin Lorentz 2013-05-18 18:11:39 +02:00
parent a9dbcf4f1b
commit f2af02e494
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ class AttackProtector(callbacks.Plugin):
if punishment == 'kick':
msg = ircmsgs.kick(channel, nick, reason)
irc.queueMsg(msg)
elif punishment == 'ban':
elif punishment.startswith('ban'):
msg = ircmsgs.ban(channel, banmask)
irc.queueMsg(msg)