From f1348e5679a501b8561fe445634587924c8d3ce8 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 8 Mar 2019 23:23:09 +0000 Subject: Handle IRCArgs being empty strings (e.g. 'PRIVMSG #test :') --- src/IRCLine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/IRCLine.py b/src/IRCLine.py index 4fd2a74d..970c2861 100644 --- a/src/IRCLine.py +++ b/src/IRCLine.py @@ -68,7 +68,8 @@ class ParsedLine(object): if self.args: for i, arg in enumerate(self._args): - if i == len(self._args)-1 and (" " in arg or arg[0] == ":"): + if arg and i == len(self._args)-1 and ( + " " in arg or arg[0] == ":"): pieces.append(":%s" % arg) else: pieces.append(arg) -- cgit v1.3.1-10-gc9f91