From 7937be51284889faa4f1d3f088680b1bac5f3fb8 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 29 Jan 2019 08:36:47 +0000 Subject: [PATCH] Don't double up command prefix in `!usage` output (commands.py) --- modules/commands.py | 3 +-- 1 file changed, 1 insertion(+), 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)