change default module description

Modules by default were returning None from help_description(), which
meant that they would not display in !help

Instead, return a generic not-available message. If a module really
doesn't want to display in !help, override and return None
This commit is contained in:
Mike Bloy 2011-01-08 22:32:55 -06:00
parent 87088e67d1
commit fdd059ddbc
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class Module(object):
"""Return a quick list of commands or other summary, should be
less than two lines. If you want the module hidden from "!help",
return None here"""
return None
return "No description available"
def help_summary(self):
"""Return a command summary or longer description of this module.