AttackProtector: when kbanning, ban user before kick, and not after.
Thanks to Omen for the fix.master
parent
373fde9470
commit
01b59135e4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue