Specify room identity with info commands to properly fix ignoring spectators/opponent
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run

This commit is contained in:
HoeenHero 2025-11-06 15:34:27 -05:00
parent ca306027fa
commit ad3b40f1c9

View File

@ -587,7 +587,7 @@ export const commands: Chat.ChatCommands = {
const { dex, format, targets } = this.splitFormat(target, true, true);
const prefix = `|c|${user.getIdentity()}|/raw `;
const prefix = `|c|${user.getIdentity(room)}|/raw `;
let buffer = '';
target = targets.join(',');
const targetId = toID(target);
@ -1984,7 +1984,7 @@ export const commands: Chat.ChatCommands = {
}
}
buf.push(`</table>`);
return this.sendReply(`|c|${user.getIdentity()}|/raw ${buf.join("")}`);
return this.sendReply(`|c|${user.getIdentity(room)}|/raw ${buf.join("")}`);
},
formathelphelp: [
`/formathelp [format] - Provides information on the given [format].`,