usage doesn't exist. return None instead

This commit is contained in:
jesopo 2020-02-10 11:09:06 +00:00
parent 6e90bf2412
commit f1b15ea7b6

View file

@ -23,7 +23,7 @@ class Module(ModuleManager.BaseModule):
if usages:
return " | ".join(
"%s %s" % (command, usage) for usage in usages)
return usage
return None
def _get_hook(self, command):
hooks = self.events.on("received.command").on(command).get_hooks()