Add Event Wildcard *
parent
f59392d4eb
commit
56864a42d8
2
bot.py
2
bot.py
|
@ -220,7 +220,7 @@ class Phenny(irc.Bot):
|
||||||
items = list(self.commands[priority].items())
|
items = list(self.commands[priority].items())
|
||||||
for regexp, funcs in items:
|
for regexp, funcs in items:
|
||||||
for func in funcs:
|
for func in funcs:
|
||||||
if event != func.event: continue
|
if event != func.event and func.event != '*': continue
|
||||||
|
|
||||||
match = regexp.match(text)
|
match = regexp.match(text)
|
||||||
if match:
|
if match:
|
||||||
|
|
Loading…
Reference in New Issue