From 7a3c8ab637d9b49e5b9dca5a3f4ec8c226b85573 Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 2 Aug 2016 12:31:20 -0700 Subject: [PATCH] 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. --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 0fd765b..27f884a 100644 --- a/utils.py +++ b/utils.py @@ -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