Skip to content

Commit

Permalink
Fix [p]modlog delete ignorecommands referencing the wrong setting
Browse files Browse the repository at this point in the history
fix #336
  • Loading branch information
spiltcoffee authored Jul 21, 2024
1 parent 095bfdd commit 16b9da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extendedmodlog/extendedmodlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ async def _delete_ignore_commands(self, ctx: commands.Context) -> None:
self.settings[ctx.guild.id] = await self.config.guild(ctx.guild).all()
guild = ctx.message.guild
msg = _("Ignore deleted command messages {enabled_or_disabled}.")
if not await self.config.guild(guild).message_delete.cached_only():
if not await self.config.guild(guild).message_delete.ignore_commands():
self.settings[ctx.guild.id]["message_delete"]["ignore_commands"] = False
verb = _("disabled")
else:
Expand Down

0 comments on commit 16b9da5

Please sign in to comment.