diff options
| author | 2021-07-23 16:45:30 -0700 | |
|---|---|---|
| committer | 2021-07-23 16:45:30 -0700 | |
| commit | 400f821d203222e4bc2de91bf70207b9401c017f (patch) | |
| tree | 9533206f9bf2ea7fea677c1f5fa0e39da78a1302 | |
| parent | Add missing notify param to _pardon_action for superstarify (diff) | |
Fix pardon_infraction call for permanent bans
| -rw-r--r-- | bot/exts/moderation/infraction/infractions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/infraction/infractions.py b/bot/exts/moderation/infraction/infractions.py index 9d5b049e1..ce19bcfdc 100644 --- a/bot/exts/moderation/infraction/infractions.py +++ b/bot/exts/moderation/infraction/infractions.py @@ -356,7 +356,7 @@ class Infractions(InfractionScheduler, commands.Cog): return log.trace("Old tempban is being replaced by new permaban.") - await self.pardon_infraction(ctx, "ban", user, is_temporary) + await self.pardon_infraction(ctx, "ban", user, send_msg=is_temporary) infraction = await _utils.post_infraction(ctx, user, "ban", reason, active=True, **kwargs) if infraction is None: |