We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eecd36 commit 6fcb302Copy full SHA for 6fcb302
irclib/parser.py
@@ -429,7 +429,9 @@ def __str__(self):
429
if not self:
430
return ''
431
432
- if self.has_trail or PARAM_SEP in self[-1]:
+ needs_trail = PARAM_SEP in self[-1] or self[-1].startswith(TRAIL_SENTINEL) or not self[-1]
433
+
434
+ if self.has_trail or needs_trail:
435
return PARAM_SEP.join(self[:-1] + [TRAIL_SENTINEL + self[-1]])
436
437
return PARAM_SEP.join(self)
0 commit comments