aboutsummaryrefslogtreecommitdiff
path: root/modules/help.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/help.py')
-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 "