diff options
author | 2020-03-16 13:35:31 +0200 | |
---|---|---|
committer | 2020-03-16 13:35:31 +0200 | |
commit | 590c26355eb9b490a738afe936820c0e12c34873 (patch) | |
tree | 1e1917d17de65ea437ab0893425fe5fb80a46e96 | |
parent | Merge 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.py | 2 |
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) |