aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-12-11 00:45:25 -0800
committerGravatar MarkKoz <[email protected]>2019-12-11 01:06:39 -0800
commite2075a6455fdb47af50d6445d868b1c19187ba4f (patch)
tree756b25b121010b712c09485bbbcde291addfdd8e
parentModLog: use Unicode arrow when displaying value changes (diff)
ModLog: make voice state event respect ignored channels
-rw-r--r--bot/cogs/moderation/modlog.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py
index ffdd5b79f..00aba9872 100644
--- a/bot/cogs/moderation/modlog.py
+++ b/bot/cogs/moderation/modlog.py
@@ -759,7 +759,10 @@ class ModLog(Cog, name="ModLog"):
after: discord.VoiceState
) -> None:
"""Log member voice state changes to the voice log channel."""
- if member.guild.id != GuildConstant.id:
+ if (
+ member.guild.id != GuildConstant.id
+ or (before.channel and before.channel.id in GuildConstant.ignored)
+ ):
return
if member.id in self._ignored[Event.voice_state_update]: