mirror of https://github.com/jesopo/irctokens
empty last params should be colon-prepended
This commit is contained in:
parent
5b998e816f
commit
85e21c5421
|
@ -106,7 +106,9 @@ class Line(object):
|
|||
raise ValueError("non last params cannot start with colon")
|
||||
outs.extend(params)
|
||||
|
||||
if " " in last or last.startswith(":"):
|
||||
if (not last or
|
||||
" " in last or
|
||||
last.startswith(":")):
|
||||
last = f":{last}"
|
||||
outs.append(last)
|
||||
return " ".join(outs)
|
||||
|
|
Loading…
Reference in New Issue