mirror of
https://github.com/jlu5/PyLink.git
synced 2025-05-05 22:27:24 +02: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:
parent
d5c5a34467
commit
7a3c8ab637
2
utils.py
2
utils.py
@ -317,7 +317,7 @@ class ServiceBot():
|
|||||||
else:
|
else:
|
||||||
for line in lines:
|
for line in lines:
|
||||||
# Otherwise, just output the rest of the docstring to IRC.
|
# Otherwise, just output the rest of the docstring to IRC.
|
||||||
_reply(line.strip())
|
_reply(line.strip() or ' ')
|
||||||
else:
|
else:
|
||||||
_reply("Error: Command %r doesn't offer any help." % command)
|
_reply("Error: Command %r doesn't offer any help." % command)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user