Skip to content

Commit

Permalink
Make /clearstatus log to Staff room (smogon#7557)
Browse files Browse the repository at this point in the history
`/forcerename` and other global punishments do this
  • Loading branch information
AnnikaCodes authored and Quanyails committed May 12, 2021
1 parent 049feda commit f9a5b68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/chat-commands/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,10 @@ export const commands: ChatCommands = {
this.checkCan('forcerename', targetUser);

const displayReason = reason ? `: ${reason}` : ``;
this.privateModAction(room.tr`${targetUser.name}'s status "${targetUser.userMessage}" was cleared by ${user.name}${displayReason}.`);
this.globalModlog('CLEARSTATUS', targetUser, ` from "${targetUser.userMessage}"${reason ? `: ${reason}` : ``}`);
this.privateGlobalModAction(room.tr`${targetUser.name}'s status "${targetUser.userMessage}" was cleared by ${user.name}${displayReason}.`);
this.globalModlog('CLEARSTATUS', targetUser, ` from "${targetUser.userMessage}"${displayReason}`);
targetUser.clearStatus();
targetUser.popup(`${user.name} has cleared your status message for being inappropriate${reason ? `: ${reason}` : '.'}`);
targetUser.popup(`${user.name} has cleared your status message for being inappropriate${displayReason || '.'}`);
return;
}

Expand Down

0 comments on commit f9a5b68

Please sign in to comment.