mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-26 02:39:38 -05:00
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
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
This commit is contained in:
parent
ca306027fa
commit
ad3b40f1c9
|
|
@ -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].`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user