fix (LionModule): Remove DM guild ban check.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user