Handle IRCArgs being empty strings (e.g. 'PRIVMSG #test :')
This commit is contained in:
parent
5165e53264
commit
f1348e5679
1 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,8 @@ class ParsedLine(object):
|
||||||
|
|
||||||
if self.args:
|
if self.args:
|
||||||
for i, arg in enumerate(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)
|
pieces.append(":%s" % arg)
|
||||||
else:
|
else:
|
||||||
pieces.append(arg)
|
pieces.append(arg)
|
||||||
|
|
Loading…
Reference in a new issue