fix (LionModule): Remove DM guild ban check.

This commit is contained in:
2021-09-29 12:16:29 +03:00
parent acc517bebc
commit ca442ea319

View File

@@ -67,15 +67,15 @@ class LionModule(Module):
""" """
Lion pre-command hook. Lion pre-command hook.
""" """
# Check global guild blacklist
if ctx.guild.id in ctx.client.objects['blacklisted_guilds']:
raise SafeCancellation
# Check global user blacklist # Check global user blacklist
if ctx.author.id in ctx.client.objects['blacklisted_users']: if ctx.author.id in ctx.client.objects['blacklisted_users']:
raise SafeCancellation raise SafeCancellation
if ctx.guild: if ctx.guild:
# Check global guild blacklist
if ctx.guild.id in ctx.client.objects['blacklisted_guilds']:
raise SafeCancellation
# Check guild's own member blacklist # Check guild's own member blacklist
if ctx.author.id in ctx.client.objects['ignored_members'][ctx.guild.id]: if ctx.author.id in ctx.client.objects['ignored_members'][ctx.guild.id]:
raise SafeCancellation raise SafeCancellation