Only allow the last arg of a formatted line to be :trailing

This commit is contained in:
jesopo 2019-02-23 16:07:20 +00:00
parent 6bdec003a1
commit 54218b747f

View file

@ -96,8 +96,9 @@ class IRCParsedLine(object):
s += self.command
if self.args:
for i, arg in enumerate(self._args):
s += " %s" % trailing(arg)
if len(self._args) > 1:
s += " %s" % " ".join(self._args[:-1])
s += " %s" % trailing(self._args[-1])
return s