Add Event Wildcard *

This commit is contained in:
sfan5
2012-12-03 22:20:13 +01:00
committed by mutantmonkey
parent f59392d4eb
commit 56864a42d8

2
bot.py
View File

@@ -220,7 +220,7 @@ class Phenny(irc.Bot):
items = list(self.commands[priority].items())
for regexp, funcs in items:
for func in funcs:
if event != func.event: continue
if event != func.event and func.event != '*': continue
match = regexp.match(text)
if match: