diff options
| author | 2018-09-04 07:20:27 +0100 | |
|---|---|---|
| committer | 2018-09-04 07:20:27 +0100 | |
| commit | e5e9a6fc65bcc96328e191a02a6363f5e0bbf583 (patch) | |
| tree | 5a5b43f32898da8e355430d6f8a1a2298443c19e /IRCLineHandler.py | |
| parent | Debug log raw data (diff) | |
| signature | ||
idle-notify un-away messages don't have *any* args - this caused BitBot to crash
in IRCLineHandler.handle
Diffstat (limited to 'IRCLineHandler.py')
| -rw-r--r-- | IRCLineHandler.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/IRCLineHandler.py b/IRCLineHandler.py index bd423d4d..c6d24649 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -63,7 +63,9 @@ class LineHandler(object): tags[tag_split[0]] = "".join(tag_split[1:]) if line[0] == ":": - prefix, command, line = line[1:].split(" ", 2) + prefix, command = line[1:].split(" ", 1) + if " " in command: + command, line = command.split(" ", 1) else: command, line = line.split(" ", 1) |
