diff --git a/bot.py b/bot.py index 21b8529..ebafa68 100755 --- a/bot.py +++ b/bot.py @@ -203,6 +203,9 @@ class Phenny(irc.Bot): bytes, event, args = args[0], args[1], args[2:] text = decode(bytes) + if origin.nick in self.config.ignore: + return + for priority in ('high', 'medium', 'low'): items = self.commands[priority].items() for regexp, funcs in items: diff --git a/phenny b/phenny index 68a5129..dc8eac6 100755 --- a/phenny +++ b/phenny @@ -41,6 +41,8 @@ def create_default_config(fn): # But admin.py is disabled by default, as follows: exclude = ['admin'] + ignore = [''] + # If you want to enumerate a list of modules rather than disabling # some, use "enable = ['example']", which takes precedent over exclude #