From d544e711041cd63bfbcf9b351a0122078ce2d25b Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 30 Jul 2016 07:44:43 -0500 Subject: [PATCH] Printing the command in permissions checking, as it seems to be failing. --- cogs/mod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/mod.py b/cogs/mod.py index 0c126c2..09ab6bd 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -65,7 +65,6 @@ class Mod: if command is None or len(command) == 0: await self.bot.say("Valid permissions are: ```{}```".format("\n".join("{}".format(i) for i in valid_perms))) return - command = " ".join(command) custom_perms = config.getContent('custom_permissions') or {} server_perms = custom_perms.get(ctx.message.server.id) @@ -74,6 +73,7 @@ class Mod: return command_perms = server_perms.get(command) + await self.bot.say("`{}` is type `{}`".format(command,type(command))) if command_perms is None: await self.bot.say("That command has no custom permissions setup on it!") else: