From 44af503a6919b8f64a75c5ccb8f59d5c1050d5fb Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 16 Jul 2016 12:30:58 -0500 Subject: [PATCH] Fixed syntax error --- cogs/mod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/mod.py b/cogs/mod.py index 620558d..3997a24 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -121,7 +121,7 @@ class Mod: await self.bot.say("Checking for owner role commands, or commands that don't allow customer permissions") for check in cmd.checks: - if "isOwner" == check.__name__ or "has_permissions" == re.search("has_permissions",str(check)).group(0): + if "isOwner" == check.__name__ or re.search("has_permissions",str(check)) is not None: await self.bot.say("This command cannot have custom permissions setup!") return