diff options
author | 2021-10-14 16:30:21 +0100 | |
---|---|---|
committer | 2021-10-17 09:55:45 +0100 | |
commit | 457cd6e34212fae08ef74b1b08dba2984e57a665 (patch) | |
tree | 2a5fb7906197da596f410b35c8ae7a0de02cad0e | |
parent | Refactor: Update modlog ignore function name (diff) |
Use modlog ignore function for voice events too
-rw-r--r-- | bot/exts/moderation/modlog.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/moderation/modlog.py b/bot/exts/moderation/modlog.py index 0dc2e84b5..b09eb2d14 100644 --- a/bot/exts/moderation/modlog.py +++ b/bot/exts/moderation/modlog.py @@ -838,7 +838,8 @@ class ModLog(Cog, name="ModLog"): """Log member voice state changes to the voice log channel.""" if ( member.guild.id != GuildConstant.id - or (before.channel and before.channel.id in GuildConstant.modlog_blacklist) + or (before.channel and self.is_channel_ignored(before.channel.id)) + or (after.channel and self.is_channel_ignored(after.channel.id)) ): return |