From 74f474b9a7bd38a0b3fcd2a714735e4ae9069595 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Sat, 20 Oct 2018 23:37:41 -0500 Subject: [PATCH] Correct error that disabled all commands if one command is disabled --- cogs/utils/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/utils/checks.py b/cogs/utils/checks.py index ceabe14..faa6c08 100644 --- a/cogs/utils/checks.py +++ b/cogs/utils/checks.py @@ -93,7 +93,7 @@ async def check_not_restricted(ctx): source = from_restriction.get('source') destination = from_restriction.get('destination') # Special check for what the "disable" command produces - if destination == "everyone": + if destination == "everyone" and ctx.command.qualified_name == source: return False # Convert destination to the object we want destination = await utilities.convert(ctx, destination)