mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Actually works.
This commit is contained in:
parent
7f1b983f1b
commit
4d1d52f61b
@ -42,7 +42,10 @@ __contributors__ = {}
|
||||
|
||||
import supybot.conf as conf
|
||||
import supybot.utils as utils
|
||||
import supybot.ircdb as ircdb
|
||||
import supybot.plugins as plugins
|
||||
import supybot.ircmsgs as ircmsgs
|
||||
import supybot.ircutils as ircutils
|
||||
import supybot.privmsgs as privmsgs
|
||||
import supybot.registry as registry
|
||||
import supybot.callbacks as callbacks
|
||||
@ -98,11 +101,12 @@ class AutoMode(callbacks.Privmsg):
|
||||
if ircdb.checkCapability(msg.prefix, cap):
|
||||
msgmaker = getattr(ircmsgs, type)
|
||||
irc.queueMsg(msgmaker(channel, msg.nick))
|
||||
if fallthrough:
|
||||
raise Return
|
||||
if not fallthrough:
|
||||
raise Continue
|
||||
try:
|
||||
do('op')
|
||||
do('halfop')
|
||||
if 'h' in irc.state.supported['prefix']:
|
||||
do('halfop')
|
||||
do('voice')
|
||||
except Continue:
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user