aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/IRCLine.py3
1 files changed, 2 insertions, 1 deletions
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)