1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Fixed issue where the server was being searched instead of the channel

This commit is contained in:
phxntxm 2016-07-20 17:08:46 -05:00
parent c5dd7a1cee
commit bfff8e3ffb

View file

@ -244,8 +244,8 @@ class Core:
tags = tags.replace(' ', '_')
tags = tags.replace(',_', '%20')
url = 'https://e621.net/post/index.json?tags={}'.format(tags)
if ctx.message.server.id in config.getContent('nsfw_channels'):
if ctx.message.channel.id in config.getContent('nsfw_channels'):
url += "%20rating:explicit"
else:
url += "%20rating:safe"