diff options
| author | 2018-12-29 21:35:06 +0000 | |
|---|---|---|
| committer | 2018-12-29 21:35:06 +0000 | |
| commit | ee8d3a6287f3da56010d3e2a664648103c95ef82 (patch) | |
| tree | 197b0698ab7360409d9b8ec8b70380a496cc8cba | |
| parent | `type` should be before `number` in the string formatting of issue_comment (diff) | |
| signature | ||
Remove an erroneous level of indentation that prevented the command being
prepended to a usage string when only 1 usage string was available (commands.py)
| -rw-r--r-- | modules/commands.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/commands.py b/modules/commands.py index ee84df2b..34688d5a 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -251,9 +251,10 @@ class Module(ModuleManager.BaseModule): usage = hook.get_kwarg("usage", None) if not usage: usages = hook.docstring.var_items.get("usage", None) - if usages: - return " | ".join( - "%s %s" % (command, usage) for usage in usages) + + if usages: + return " | ".join( + "%s %s" % (command, usage) for usage in usages) return usage def _get_prefix(self, hook): |
