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 11:12:11 -05:00
parent 233364f322
commit 5565b6cd91

View file

@ -188,8 +188,8 @@ class Core:
if len(result) == 0:
await self.bot.say("The tag {} does not exist! You can't remove something if it doesn't exist...".format(tag))
return
for tag in tags:
if tag['tag'] == tag and tag['server_id'] == ctx.message.server.id:
for t in tags:
if t['tag'] == tag and t['server_id'] == ctx.message.server.id:
tags.remove(tag)
config.saveContent('tags',tags)
await self.bot.say('I have just removed the tag `{}`'.format(tag))