diff options
author | 2020-10-06 11:43:10 +0300 | |
---|---|---|
committer | 2020-10-06 11:43:10 +0300 | |
commit | d69804ee73391dc7c95d1d743615ba4b7a1de7d8 (patch) | |
tree | e069a41d01ceda94f4f54df77a6e7601d3322cf6 | |
parent | Merge pull request #1215 from python-discord/joseph/verification (diff) |
Fix old nick in superstarify reason
-rw-r--r-- | bot/exts/moderation/infraction/superstarify.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/moderation/infraction/superstarify.py b/bot/exts/moderation/infraction/superstarify.py index eec63f5b3..adfe42fcd 100644 --- a/bot/exts/moderation/infraction/superstarify.py +++ b/bot/exts/moderation/infraction/superstarify.py @@ -135,7 +135,8 @@ class Superstarify(InfractionScheduler, Cog): return # Post the infraction to the API - reason = reason or f"old nick: {member.display_name}" + old_nick = member.display_name + reason = reason or f"old nick: {old_nick}" infraction = await _utils.post_infraction(ctx, member, "superstar", reason, duration, active=True) id_ = infraction["id"] @@ -148,7 +149,7 @@ class Superstarify(InfractionScheduler, Cog): await member.edit(nick=forced_nick, reason=reason) self.schedule_expiration(infraction) - old_nick = escape_markdown(member.display_name) + old_nick = escape_markdown(old_nick) forced_nick = escape_markdown(forced_nick) # Send a DM to the user to notify them of their new infraction. |