From 81822b5bf3e0bb36c7ee117fc3aeb2ded5897609 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 3 Dec 2012 22:20:13 +0100 Subject: Add Event Wildcard * --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 453dbc4..e45c035 100755 --- a/bot.py +++ b/bot.py @@ -205,7 +205,7 @@ class Phenny(irc.Bot): items = 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: -- cgit v1.2.3-1-g7c22