aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks123 <[email protected]>2020-03-16 13:35:31 +0200
committerGravatar ks123 <[email protected]>2020-03-16 13:35:31 +0200
commit590c26355eb9b490a738afe936820c0e12c34873 (patch)
tree1e1917d17de65ea437ab0893425fe5fb80a46e96
parentMerge pull request #803 from RohanJnr/tags_overhaul (diff)
(Mod Log): Fixed case when `on_guild_channel_update` old or new value is empty and with this message formatting go wrong.
-rw-r--r--bot/cogs/moderation/modlog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py
index 81d95298d..5d7c91ac4 100644
--- a/bot/cogs/moderation/modlog.py
+++ b/bot/cogs/moderation/modlog.py
@@ -215,7 +215,7 @@ class ModLog(Cog, name="ModLog"):
new = value["new_value"]
old = value["old_value"]
- changes.append(f"**{key.title()}:** `{old}` **→** `{new}`")
+ changes.append(f"**{key.title()}:** `{old or 'None'}` **→** `{new or 'None'}`")
done.append(key)