diff options
| -rw-r--r-- | bot/cogs/defcon.py | 3 | ||||
| -rw-r--r-- | bot/cogs/modlog.py | 4 | 
2 files changed, 6 insertions, 1 deletions
| diff --git a/bot/cogs/defcon.py b/bot/cogs/defcon.py index 4c043f050..f07d9df9f 100644 --- a/bot/cogs/defcon.py +++ b/bot/cogs/defcon.py @@ -5,7 +5,7 @@ from discord import Colour, Embed, Member  from discord.ext.commands import Bot, Context, group  from bot.cogs.modlog import ModLog -from bot.constants import Channels, Colours, Emojis, Icons, Keys, Roles, URLs +from bot.constants import Channels, Colours, Emojis, Event, Icons, Keys, Roles, URLs  from bot.decorators import with_role  log = logging.getLogger(__name__) @@ -270,6 +270,7 @@ class Defcon:          else:              new_topic = f"{BASE_CHANNEL_TOPIC}\n(Status: Disabled)" +        self.mod_log.ignore(Event.guild_channel_update, Channels.defcon)          defcon_channel = self.bot.guilds[0].get_channel(Channels.defcon)          await defcon_channel.edit(topic=new_topic) diff --git a/bot/cogs/modlog.py b/bot/cogs/modlog.py index 905f114c1..0561b5afb 100644 --- a/bot/cogs/modlog.py +++ b/bot/cogs/modlog.py @@ -176,6 +176,10 @@ class ModLog:          if before.guild.id != GuildConstant.id:              return +        if before.id in self._ignored[Event.guild_channel_update]: +            self._ignored[Event.guild_channel_update].remove(before.id) +            return +          diff = DeepDiff(before, after)          changes = []          done = [] | 
