From c6346e48dd4204996814a37bf31d65b2dbbf02cf Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 17 Jul 2014 20:00:03 +0200 Subject: [PATCH] AutoMode: Do not make voice override ban. Closes GH-160. --- plugins/AutoMode/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/AutoMode/plugin.py b/plugins/AutoMode/plugin.py index d6532cb34..c5ec3bb48 100644 --- a/plugins/AutoMode/plugin.py +++ b/plugins/AutoMode/plugin.py @@ -126,7 +126,6 @@ class AutoMode(callbacks.Plugin): do('op') if 'h' in irc.state.supported['prefix']: do('halfop') - do('voice') except Continue: return finally: @@ -147,6 +146,10 @@ class AutoMode(callbacks.Plugin): irc.queueMsg(ircmsgs.ban(channel, banmask)) irc.queueMsg(ircmsgs.kick(channel, msg.nick)) + try: + do('voice') + except Continue: + return