diff options
author | 2019-09-25 18:00:42 -0700 | |
---|---|---|
committer | 2019-09-25 18:00:42 -0700 | |
commit | 1685d676008d3092fa1e2377769613a5063e10f8 (patch) | |
tree | b26c4fa2e0ecfc98c1e1af9c9b9432c709053c14 | |
parent | Merge infraction edit commands (diff) |
Display "Permanent" in mod log for edited infractions
-rw-r--r-- | bot/cogs/moderation.py | 4 |
1 files 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)}") |