aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-29 08:36:47 +0000
committerGravatar jesopo2019-01-29 08:36:47 +0000
commit7937be51284889faa4f1d3f088680b1bac5f3fb8 (patch)
treeb697ce8d901e6cf806b30a49858fd8d6732d8b29
parentActually show the command prefix we now pass to _get_usage (commands.py) (diff)
signature
Don't double up command prefix in `!usage` output (commands.py)
-rw-r--r--modules/commands.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/commands.py b/modules/commands.py
index b5ac3176..672c94cc 100644
--- a/modules/commands.py
+++ b/modules/commands.py
@@ -322,9 +322,8 @@ class Module(ModuleManager.BaseModule):
command = event["args_split"][0].lower()
if command in self.events.on("received").on(
"command").get_children():
- command_str = "%s%s" % (command_prefix, command)
hooks = self.events.on("received.command").on(command).get_hooks()
- usage = self._get_usage(hooks[0], command_str, command_prefix)
+ usage = self._get_usage(hooks[0], command, command_prefix)
if usage:
event["stdout"].write("Usage: %s" % usage)