From 2c2924c46cd6db8aa1fc9024c850287c92c5b8bc Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sun, 13 Nov 2022 13:06:50 +0000 Subject: Remove modlog ignore for help chanels This was due to the hlep channels causing many events top be pushed to modlog due to how the old system worked. Now that we use a forum chanel, this is no longer the case. --- bot/exts/moderation/modlog.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bot/exts/moderation/modlog.py b/bot/exts/moderation/modlog.py index efa87ce25..a1ed714be 100644 --- a/bot/exts/moderation/modlog.py +++ b/bot/exts/moderation/modlog.py @@ -16,7 +16,7 @@ from discord.utils import escape_markdown, format_dt, snowflake_time from sentry_sdk import add_breadcrumb from bot.bot import Bot -from bot.constants import Categories, Channels, Colours, Emojis, Event, Guild as GuildConstant, Icons, Roles, URLs +from bot.constants import Channels, Colours, Emojis, Event, Guild as GuildConstant, Icons, Roles, URLs from bot.log import get_logger from bot.utils import time from bot.utils.messages import format_user @@ -209,12 +209,6 @@ class ModLog(Cog, name="ModLog"): self._ignored[Event.guild_channel_update].remove(before.id) return - # Two channel updates are sent for a single edit: 1 for topic and 1 for category change. - # TODO: remove once support is added for ignoring multiple occurrences for the same channel. - help_categories = (Categories.help_available, Categories.help_dormant, Categories.help_in_use) - if after.category and after.category.id in help_categories: - return - diff = DeepDiff(before, after) changes = [] done = [] -- cgit v1.2.3