From e5e9a6fc65bcc96328e191a02a6363f5e0bbf583 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 4 Sep 2018 07:20:27 +0100 Subject: idle-notify un-away messages don't have *any* args - this caused BitBot to crash in IRCLineHandler.handle --- IRCLineHandler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.3.1-10-gc9f91