diff options
| author | 2018-08-29 12:43:54 +0100 | |
|---|---|---|
| committer | 2018-08-29 12:43:54 +0100 | |
| commit | 0b95dfb98bb37b9dd29597b9ebe9f34630e936ba (patch) | |
| tree | d2062b9bef426898c2f6b0cb6ef6fd3c87c8d1a1 /IRCLineHandler.py | |
| parent | Refactor IRCLineHandler in to an object that uses .on("raw") events (diff) | |
| signature | ||
Do a default event for received data if there's no hooks for it
Diffstat (limited to 'IRCLineHandler.py')
| -rw-r--r-- | IRCLineHandler.py | 2 |
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(" "), |
