From f873e0d42a2ba5e1ae8ff91198f49bb31bfffd8a Mon Sep 17 00:00:00 2001 From: Mia <49593536+mia-pi-git@users.noreply.github.com> Date: Mon, 15 Feb 2021 14:35:28 -0600 Subject: [PATCH] Fix /forcerename --- server/chat-commands/moderation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/chat-commands/moderation.ts b/server/chat-commands/moderation.ts index d1083455fe..4f37af8331 100644 --- a/server/chat-commands/moderation.ts +++ b/server/chat-commands/moderation.ts @@ -1527,7 +1527,7 @@ export const commands: ChatCommands = { return this.errorReply(`User '${target}' not found.`); } this.checkCan('forcerename', targetID); - const {publicReason, privateReason} = this.parseSpoiler(target); + const {publicReason, privateReason} = this.parseSpoiler(reason); Monitor.forceRenames.set(targetUser.id, (Monitor.forceRenames.get(targetUser.id) || 0) + 1);