From 2211cb054204a4f1f6a4552853bc307c697de05c Mon Sep 17 00:00:00 2001 From: dngfx Date: Sun, 9 Sep 2018 08:59:36 +0100 Subject: Fix a few niggles --- modules/commands.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/commands.py') diff --git a/modules/commands.py b/modules/commands.py index d6b821f0..2567880b 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -190,10 +190,14 @@ class Module(object): event["stdout"].write("Commands: %s" % ", ".join(help_available)) def usage(self, event): - command_prefix = event["target"].get_setting("command-prefix", + if event["is_channel"]: + command_prefix = event["target"].get_setting("command-prefix", event["server"].get_setting( "command-prefix", "!")) + else: + command_prefix = "" + command = event["args_split"][0].lower() if command in self.events.on("received").on( -- cgit v1.3.1-10-gc9f91