aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-11-13 13:06:50 +0000
committerGravatar Chris Lovering <[email protected]>2022-11-25 22:43:45 +0000
commit2c2924c46cd6db8aa1fc9024c850287c92c5b8bc (patch)
treea1f1a96904d5ea82eb24202a864c20328348e422
parentUse helper util to determine if snekbox is being invoked in a help post (diff)
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.
-rw-r--r--bot/exts/moderation/modlog.py8
1 files changed, 1 insertions, 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 = []