Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/core/config.py b/core/config.py
- index 1b2cacb..f99d024 100644
- --- a/core/config.py
- +++ b/core/config.py
- @@ -21,6 +21,8 @@ if not os.path.exists('config'):
- },
- "disabled_plugins": [],
- "disabled_commands": [],
- + "enabled_commands": [],
- + "enabled_commands_propagate": 0,
- "acls": {},
- "api_keys": {},
- "censored_strings":
- diff --git a/plugins/sieve.py b/plugins/sieve.py
- index 108390e..334fd9f 100644
- --- a/plugins/sieve.py
- +++ b/plugins/sieve.py
- @@ -12,6 +12,10 @@ def sieve_suite(bot, input, func, kind, args):
- if kind == "command":
- if input.trigger in bot.config.get('disabled_commands', []):
- return None
- + if bot.config.get('enabled_commands_propagate'):
- + if input.trigger not in bot.config.get('enabled_commands', []):
- + return None
- +
- ignored = bot.config.get('ignored', [])
- if input.host in ignored or input.nick in ignored:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement