1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 21:02:38 +00:00

80 character per line compliance

This commit is contained in:
Myned 2017-11-19 23:42:20 -05:00
parent 814d8eaf25
commit c129f00ff3

View file

@ -1404,7 +1404,8 @@ class MsG:
await dest.trigger_typing()
self.blacklists['user_blacklist'].setdefault(ctx.author.id, set()).update(tags)
self.blacklists['user_blacklist'].setdefault(
ctx.author.id, set()).update(tags)
for tag in tags:
alias_request = await u.fetch('https://e621.net/tag_alias/index.json', params={'aliased_to': tag, 'approved': 'true'}, json=True)
if alias_request:
@ -1457,7 +1458,8 @@ class MsG:
for tag in tags:
try:
self.blacklists['guild_blacklist'][guild.id][ctx.channel.id].remove(tag)
self.blacklists['guild_blacklist'][guild.id][ctx.channel.id].remove(
tag)
except KeyError:
raise exc.TagError(tag)
@ -1478,7 +1480,8 @@ class MsG:
for tag in tags:
try:
self.blacklists['user_blacklist'][ctx.author.id].remove(tag)
self.blacklists['user_blacklist'][ctx.author.id].remove(
tag)
except KeyError:
raise exc.TagError(tag)