Some small fixes to the help command.

This commit is contained in:
Griatch 2012-02-25 18:24:30 +01:00
parent 9733a43a16
commit 631020d8a2
2 changed files with 30 additions and 35 deletions

View file

@ -42,6 +42,10 @@ class CommandMeta(type):
temp.append(lockstring)
mcs.lock_storage = ";".join(temp)
if not hasattr(mcs, 'is_exit'):
mcs.is_exit = False
if not hasattr(mcs, "help_category"):
mcs.help_category = "general"
mcs.help_category = mcs.help_category.lower()
super(CommandMeta, mcs).__init__(*args, **kwargs)