1
0
Fork 0
mirror of synced 2024-06-02 02:34:32 +12:00

Corrected issue where a find and replace replaced something unintional

This commit is contained in:
phxntxm 2017-02-13 02:06:56 -06:00
parent e3826ce3aa
commit bfe4b85dc2

View file

@ -304,7 +304,7 @@ class Mod:
# The other case is if I'm using the default has_permissions case
# 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.utils:
for check in cmd.checks:
if "is_owner" == check.__name__ or re.search("has_permissions", str(check)) is not None:
await self.bot.say("This command cannot have custom permissions setup!")
return