Add Event Wildcard *

master
sfan5 2012-12-03 22:20:13 +01:00 committed by mutantmonkey
parent f59392d4eb
commit 56864a42d8
1 changed files with 1 additions and 1 deletions

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: