diff options
| author | 2020-10-06 11:33:02 +0200 | |
|---|---|---|
| committer | 2020-10-06 11:33:02 +0200 | |
| commit | d9f1bc796b2b14eca72d1fa62733e7f0fe2143da (patch) | |
| tree | e069a41d01ceda94f4f54df77a6e7601d3322cf6 | |
| parent | Merge pull request #1215 from python-discord/joseph/verification (diff) | |
| parent | Fix old nick in superstarify reason (diff) | |
PR #1216 Starify: correctly show old nick
| -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. | 
