aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-17 16:27:35 +0100
committerGravatar jesopo2019-09-17 16:27:35 +0100
commitebe772a5a9528ccf56f4082bb8fa1492296bdf6b (patch)
treea6b07a57f9181bce59fab0b3fca376d383ba3263 /modules
parentonly decode content-types in DECODE_CONTENT_TYPES (diff)
signature
be explicit when a command has no help available
Diffstat (limited to 'modules')
-rw-r--r--modules/help.py6
1 files changed, 5 insertions, 1 deletions
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 <module>' to list commands and "