From b0a6328b5783474bf0d3d4724fa24a8ef4255f92 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 8 Mar 2017 02:33:18 -0600 Subject: [PATCH] Corrected how to check if a command can have permissions setup on it --- cogs/mod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/mod.py b/cogs/mod.py index 57e4bd0..7b618a2 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -306,7 +306,7 @@ class Mod: # Which means I do not want to check custom permissions at all # Currently the second case is only on adding and removing permissions, to avoid abuse on these for check in cmd.checks: - if "is_owner" == check.__name__ or "has_permissions" not in str(check): + if "is_owner" == check.__name__ or "has_permissions" in str(check): await ctx.send("This command cannot have custom permissions setup!") return