aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/moderation/modlog.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py
index 5d7c91ac4..21eded6e6 100644
--- a/bot/cogs/moderation/modlog.py
+++ b/bot/cogs/moderation/modlog.py
@@ -215,6 +215,8 @@ class ModLog(Cog, name="ModLog"):
new = value["new_value"]
old = value["old_value"]
+ # `or` is required here on `old` and `new` due otherwise, when one of them is empty,
+ # formatting in Discord will break.
changes.append(f"**{key.title()}:** `{old or 'None'}` **→** `{new or 'None'}`")
done.append(key)