diff --git a/plugins/AutoMode/config.py b/plugins/AutoMode/config.py index e37d908b9..98f61349f 100644 --- a/plugins/AutoMode/config.py +++ b/plugins/AutoMode/config.py @@ -42,6 +42,8 @@ def configure(advanced): AutoMode = conf.registerPlugin('AutoMode') conf.registerChannelValue(AutoMode, 'enable', registry.Boolean(True, """Determines whether this plugin is enabled.""")) +conf.registerGlobalValue(AutoMode, 'owner', + registry.Boolean(True, """Determines whether this plugin will automode owners.""")) conf.registerChannelValue(AutoMode, 'fallthrough', registry.Boolean(False, """Determines whether the bot will "fall through" to halfop/voicing when auto-opping is turned off but auto-halfopping/voicing diff --git a/plugins/AutoMode/plugin.py b/plugins/AutoMode/plugin.py index 8236abcfa..8c7fd1a69 100644 --- a/plugins/AutoMode/plugin.py +++ b/plugins/AutoMode/plugin.py @@ -48,6 +48,9 @@ class AutoMode(callbacks.Plugin): return fallthrough = self.registryValue('fallthrough', channel) def do(type): + if ircdb.checkCapability(msg.prefix, 'owner') and not \ + self.registryValue('owner'): + raise Continue cap = ircdb.makeChannelCapability(channel, type) if ircdb.checkCapability(msg.prefix, cap): if self.registryValue(type, channel):