summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2012-12-03 22:20:13 +0100
committersfan5 <sfan5@live.de>2012-12-03 22:20:13 +0100
commit81822b5bf3e0bb36c7ee117fc3aeb2ded5897609 (patch)
tree3906231fd6e9a10299ca965e1ee77b4215c3a607
parentbb40d1ad38ad9754819f46ec7d025fab67c947c0 (diff)
downloadbot-81822b5bf3e0bb36c7ee117fc3aeb2ded5897609.tar.gz
bot-81822b5bf3e0bb36c7ee117fc3aeb2ded5897609.tar.bz2
bot-81822b5bf3e0bb36c7ee117fc3aeb2ded5897609.zip
Add Event Wildcard *
-rwxr-xr-xbot.py2
1 files changed, 1 insertions, 1 deletions
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: