Advertisement
Atheuz

Untitled

Jun 5th, 2011
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.01 KB | None | 0 0
  1. diff --git a/core/config.py b/core/config.py
  2. index 1b2cacb..f99d024 100644
  3. --- a/core/config.py
  4. +++ b/core/config.py
  5. @@ -21,6 +21,8 @@ if not os.path.exists('config'):
  6.            },
  7.            "disabled_plugins": [],
  8.            "disabled_commands": [],
  9. +          "enabled_commands": [],
  10. +          "enabled_commands_propagate": 0,
  11.            "acls": {},
  12.            "api_keys": {},
  13.            "censored_strings":
  14. diff --git a/plugins/sieve.py b/plugins/sieve.py
  15. index 108390e..334fd9f 100644
  16. --- a/plugins/sieve.py
  17. +++ b/plugins/sieve.py
  18. @@ -12,6 +12,10 @@ def sieve_suite(bot, input, func, kind, args):
  19.      if kind == "command":
  20.          if input.trigger in bot.config.get('disabled_commands', []):
  21.              return None
  22. +        if bot.config.get('enabled_commands_propagate'):
  23. +            if input.trigger not in bot.config.get('enabled_commands', []):
  24. +                return None
  25. +
  26.  
  27.          ignored = bot.config.get('ignored', [])
  28.          if input.host in ignored or input.nick in ignored:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement