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
1 changed files with 4 additions and 1 deletions

View File

@ -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