From ca442ea319a81e2d59fbc9810884f60eddf30a01 Mon Sep 17 00:00:00 2001 From: Conatum Date: Wed, 29 Sep 2021 12:16:29 +0300 Subject: [PATCH] fix (LionModule): Remove DM guild ban check. --- bot/LionModule.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot/LionModule.py b/bot/LionModule.py index d6a1a557..18bcb233 100644 --- a/bot/LionModule.py +++ b/bot/LionModule.py @@ -67,15 +67,15 @@ class LionModule(Module): """ Lion pre-command hook. """ - # Check global guild blacklist - if ctx.guild.id in ctx.client.objects['blacklisted_guilds']: - raise SafeCancellation - # Check global user blacklist if ctx.author.id in ctx.client.objects['blacklisted_users']: raise SafeCancellation 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 if ctx.author.id in ctx.client.objects['ignored_members'][ctx.guild.id]: raise SafeCancellation