aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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)