mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-10 20:22:36 +01:00
AutoMode: Fix traceback since b5c99b1c
.
This commit is contained in:
parent
fc9daa9953
commit
12b8e44dc7
@ -52,6 +52,7 @@ class AutoMode(callbacks.Plugin):
|
|||||||
fallthrough = self.registryValue('fallthrough', channel)
|
fallthrough = self.registryValue('fallthrough', channel)
|
||||||
def do(type):
|
def do(type):
|
||||||
cap = ircdb.makeChannelCapability(channel, type)
|
cap = ircdb.makeChannelCapability(channel, type)
|
||||||
|
try:
|
||||||
if ircdb.checkCapability(msg.prefix, cap,
|
if ircdb.checkCapability(msg.prefix, cap,
|
||||||
ignoreOwner=not self.registryValue('owner')):
|
ignoreOwner=not self.registryValue('owner')):
|
||||||
if self.registryValue(type, channel):
|
if self.registryValue(type, channel):
|
||||||
@ -65,6 +66,8 @@ class AutoMode(callbacks.Plugin):
|
|||||||
' is not enabled in %s, refusing to fall '
|
' is not enabled in %s, refusing to fall '
|
||||||
'through.', msg.prefix, cap, type, channel)
|
'through.', msg.prefix, cap, type, channel)
|
||||||
raise Continue
|
raise Continue
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
def schedule_msg(msg):
|
def schedule_msg(msg):
|
||||||
def f():
|
def f():
|
||||||
irc.queueMsg(msg)
|
irc.queueMsg(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user