1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Cleanup some of the messages not needed when unrestricting

This commit is contained in:
phxntxm 2017-06-27 22:26:30 -05:00
parent e794c95c50
commit 1c3cfc7443

View file

@ -293,6 +293,7 @@ class Administration:
# If it doesn't exist, nothing is needed to be done
except ValueError:
await ctx.send("The restriction {} {} {} does not exist!".format(arg1, arg2, arg3))
return
# If it was removed succesfully, save the change and let the author know this has been done
else:
entry = {
@ -300,7 +301,6 @@ class Administration:
'restrictions': restrictions
}
self.bot.db.save('server_settings', entry)
await ctx.send("I have just unrestricted {} {} {}".format(arg1, arg2, arg2))
# If this isn't a blacklist/whitelist, then we are attempting to remove an overwrite
else:
# Get the source and destination based on whatever order is provided