1
0
Fork 0
mirror of synced 2024-06-02 18:54:33 +12:00

Fixed syntax error

This commit is contained in:
Phxntxm 2016-07-17 12:48:50 -05:00
parent 0000b21054
commit 359aae4bf2

View file

@ -144,12 +144,11 @@ class Mod:
if server_perms is None:
await self.bot.say("There are no custom permissions setup on this server yet!")
return
command_perms = server_perms.get(command)
command_perms = server_perms.get(cmd)
if command_perms is None:
await self.bot.say("You do not have custom permissions setup on this command yet!")
return
del server_perms[command]
custom_perms[ctx.message.server.id] = server_perms
del custom_perms[ctx.message.server.id][cmd]
config.saveContent('custom_permissions',custom_perms)
await self.bot.say("I have just removed the custom permissions for {}!".format(cmd))