idle-notify un-away messages don't have *any* args - this caused BitBot to crash

in IRCLineHandler.handle
This commit is contained in:
jesopo 2018-09-04 07:20:27 +01:00
parent b989b720eb
commit e5e9a6fc65

View file

@ -63,7 +63,9 @@ class LineHandler(object):
tags[tag_split[0]] = "".join(tag_split[1:]) tags[tag_split[0]] = "".join(tag_split[1:])
if line[0] == ":": 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: else:
command, line = line.split(" ", 1) command, line = line.split(" ", 1)