aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-06-14 22:05:18 -0700
committerGravatar MarkKoz <[email protected]>2020-06-14 22:05:18 -0700
commit17858e4d65d5592d1da6178cb80415de615f21ab (patch)
treecd845947cce6b40f4f40d6c17998f54c47f15f31
parentModLog: remove user diff in on_member_update (diff)
ModLog: fix excluded None values in on_member_update
This was preventing diffs for added nicknames from showing, among other things.
-rw-r--r--bot/cogs/moderation/modlog.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py
index 703da4ee7..163721e1c 100644
--- a/bot/cogs/moderation/modlog.py
+++ b/bot/cogs/moderation/modlog.py
@@ -504,8 +504,7 @@ class ModLog(Cog, name="ModLog"):
new = value.get("new_value")
old = value.get("old_value")
- if new and old:
- changes.append(f"**{key.title()}:** `{old}` **→** `{new}`")
+ changes.append(f"**{key.title()}:** `{old}` **→** `{new}`")
done.append(key)