mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Revert "AutoMode: Disable overriding rights of auto* capabilities."
This reverts commit 4a20270655
.
This commit is contained in:
parent
0ecdb87aef
commit
f1c13054fe
@ -55,19 +55,18 @@ class AutoMode(callbacks.Plugin):
|
||||
def do(type):
|
||||
cap = ircdb.makeChannelCapability(channel, type)
|
||||
cap_auto = ircdb.makeChannelCapability(channel, 'auto'+type)
|
||||
try:
|
||||
apply_mode = ircdb.checkCapability(msg.prefix, cap,
|
||||
ignoreOwner=not self.registryValue('owner'))
|
||||
except KeyError:
|
||||
apply_mode = False
|
||||
try:
|
||||
apply_mode |= ircdb.checkCapability(msg.prefix, cap,
|
||||
override = ircdb.checkCapability(msg.prefix, cap_auto,
|
||||
ignoreOwner=not self.registryValue('owner'))
|
||||
except KeyError:
|
||||
pass
|
||||
try:
|
||||
apply_mode |= ircdb.checkCapability(msg.prefix, cap_auto,
|
||||
ignoreOwner=not self.registryValue('owner'))
|
||||
except KeyError:
|
||||
pass
|
||||
if apply_mode:
|
||||
if self.registryValue(type, channel):
|
||||
override = False
|
||||
if apply_mode or override:
|
||||
if override or self.registryValue(type, channel):
|
||||
self.log.info('Scheduling auto-%s of %s in %s.',
|
||||
type, msg.prefix, channel)
|
||||
def dismiss():
|
||||
|
Loading…
Reference in New Issue
Block a user