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)