From c49b32f224a220ef3c7e2fc9483de60ea555f6ed Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 22 Oct 2004 19:36:30 +0000 Subject: [PATCH] Fixed fallthrough handling. --- plugins/AutoMode.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/AutoMode.py b/plugins/AutoMode.py index cf42f64f3..b16548816 100644 --- a/plugins/AutoMode.py +++ b/plugins/AutoMode.py @@ -101,8 +101,9 @@ class AutoMode(callbacks.Privmsg): if ircdb.checkCapability(msg.prefix, cap): msgmaker = getattr(ircmsgs, type) irc.queueMsg(msgmaker(channel, msg.nick)) - if not fallthrough: - raise Continue + raise Continue # Even if fallthrough, let's only do one. + elif not fallthrough: + raise Continue try: do('op') if 'h' in irc.state.supported['prefix']: