Only allow the last arg of a formatted line to be :trailing
This commit is contained in:
parent
6bdec003a1
commit
54218b747f
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue