AutoMode: Do not make voice override ban. Closes GH-160.

This commit is contained in:
Valentin Lorentz 2014-07-17 20:00:03 +02:00
parent e02a766f82
commit c6346e48dd

View File

@ -126,7 +126,6 @@ class AutoMode(callbacks.Plugin):
do('op') do('op')
if 'h' in irc.state.supported['prefix']: if 'h' in irc.state.supported['prefix']:
do('halfop') do('halfop')
do('voice')
except Continue: except Continue:
return return
finally: finally:
@ -147,6 +146,10 @@ class AutoMode(callbacks.Plugin):
irc.queueMsg(ircmsgs.ban(channel, banmask)) irc.queueMsg(ircmsgs.ban(channel, banmask))
irc.queueMsg(ircmsgs.kick(channel, msg.nick)) irc.queueMsg(ircmsgs.kick(channel, msg.nick))
try:
do('voice')
except Continue:
return