Fix /forcerename

This commit is contained in:
Mia 2021-02-15 14:35:28 -06:00 committed by GitHub
parent 7447130127
commit f873e0d42a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);