From ebe772a5a9528ccf56f4082bb8fa1492296bdf6b Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 17 Sep 2019 16:27:35 +0100 Subject: [PATCH] be explicit when a command has no help available --- modules/help.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/help.py b/modules/help.py index 31231d89..4ebd2a2a 100644 --- a/modules/help.py +++ b/modules/help.py @@ -38,7 +38,11 @@ class Module(ModuleManager.BaseModule): out = help if usage: out += ". Usage: %s" % usage - event["stdout"].write("%s: %s" % (command, out)) + + if out: + event["stdout"].write("%s: %s" % (command, out)) + else: + event["stderr"].write("No help for %s" % command) else: event["stdout"].write("I'm %s. use '%smodules' to list modules, " "'%scommands ' to list commands and "