aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-04 07:20:27 +0100
committerGravatar jesopo2018-09-04 07:20:27 +0100
commite5e9a6fc65bcc96328e191a02a6363f5e0bbf583 (patch)
tree5a5b43f32898da8e355430d6f8a1a2298443c19e
parentDebug log raw data (diff)
signature
idle-notify un-away messages don't have *any* args - this caused BitBot to crash
in IRCLineHandler.handle
-rw-r--r--IRCLineHandler.py4
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)