aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IRCLineHandler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/IRCLineHandler.py b/IRCLineHandler.py
index d460af41..58b754f0 100644
--- a/IRCLineHandler.py
+++ b/IRCLineHandler.py
@@ -76,7 +76,7 @@ class LineHandler(object):
#server, prefix, command, args, arbitrary
self.bot.events.on("raw").on(command).call(server=server,
prefix=prefix, args=args, arbitrary=arbitrary)
- if default_event:
+ if default_event or not hooks:
if command.isdigit():
self.bot.events.on("received").on("numeric").on(command
).call(line=line, line_split=line.split(" "),