1
0
Fork 0
mirror of synced 2024-05-06 21:52:30 +12:00

Correct error that disabled all commands if one command is disabled

This commit is contained in:
phxntxm 2018-10-20 23:37:41 -05:00
parent a12d9c6dd7
commit 74f474b9a7

View file

@ -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)