AttackProtector: when kbanning, ban user before kick, and not after.

Thanks to Omen for the fix.
master
Valentin Lorentz 2012-04-29 18:01:22 +00:00
parent 373fde9470
commit 01b59135e4
1 changed files with 2 additions and 2 deletions

View File

@ -183,10 +183,10 @@ class AttackProtector(callbacks.Plugin):
msg = ircmsgs.ban(channel, prefix)
irc.queueMsg(msg)
elif punishment == 'kban':
msg = ircmsgs.kick(channel, nick, reason)
irc.queueMsg(msg)
msg = ircmsgs.ban(channel, prefix)
irc.queueMsg(msg)
msg = ircmsgs.kick(channel, nick, reason)
irc.queueMsg(msg)
elif punishment.startswith('mode'):
msg = ircmsgs.mode(channel, punishment[len('mode'):])
irc.queueMsg(msg)