From f9a5b688fc4df14692916f185d089e2df28451fb Mon Sep 17 00:00:00 2001 From: Annika <56906084+AnnikaCodes@users.noreply.github.com> Date: Tue, 27 Oct 2020 19:24:09 -0700 Subject: [PATCH] Make /clearstatus log to Staff room (#7557) `/forcerename` and other global punishments do this --- server/chat-commands/core.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/chat-commands/core.ts b/server/chat-commands/core.ts index ff090bf9b870a..f7517eb65b663 100644 --- a/server/chat-commands/core.ts +++ b/server/chat-commands/core.ts @@ -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; }