From 1685d676008d3092fa1e2377769613a5063e10f8 Mon Sep 17 00:00:00 2001 From: MarkKoz Date: Wed, 25 Sep 2019 18:00:42 -0700 Subject: Display "Permanent" in mod log for edited infractions --- bot/cogs/moderation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/cogs/moderation.py b/bot/cogs/moderation.py index 2b3a21dc9..e9d978de6 100644 --- a/bot/cogs/moderation.py +++ b/bot/cogs/moderation.py @@ -938,8 +938,8 @@ class Moderation(Scheduler, Cog): self.schedule_task(loop, new_infraction['id'], new_infraction) log_text += f""" - Previous expiry: {old_infraction['expires_at']} - New expiry: {new_infraction['expires_at']} + Previous expiry: {old_infraction['expires_at'] or "Permanent"} + New expiry: {new_infraction['expires_at'] or "Permanent"} """.rstrip() await ctx.send(f":ok_hand: Updated infraction: {' & '.join(confirm_messages)}") -- cgit v1.2.3