3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-11 20:52:42 +01:00

ServiceBot: fall back to a space in 'help' when stripped text is empty

This makes sure things like newlines actually show when displaying docstrings. Closes #306.
This commit is contained in:
James Lu 2016-08-02 12:31:20 -07:00
parent d5c5a34467
commit 7a3c8ab637

View File

@ -317,7 +317,7 @@ class ServiceBot():
else:
for line in lines:
# Otherwise, just output the rest of the docstring to IRC.
_reply(line.strip())
_reply(line.strip() or ' ')
else:
_reply("Error: Command %r doesn't offer any help." % command)
return