Add basic ignore functionality
parent
b9c2193eb2
commit
4b9215a202
3
bot.py
3
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:
|
||||
|
|
Loading…
Reference in New Issue