diff --git a/server/chat-commands/info.ts b/server/chat-commands/info.ts index da2fd18e2b..9bf5d68d8c 100644 --- a/server/chat-commands/info.ts +++ b/server/chat-commands/info.ts @@ -642,7 +642,7 @@ export const commands: Chat.ChatCommands = { tierDisplay === 'doubles tiers' ? pokemon.doublesTier : tierDisplay === 'National Dex tiers' ? pokemon.natDexTier : pokemon.num >= 0 ? String(pokemon.num) : pokemon.tier; - buffer += `|raw|${Chat.getDataPokemonHTML(pokemon, dex.gen, displayedTier)}\n`; + buffer += `|c|${user.getIdentity()}|/raw ${Chat.getDataPokemonHTML(pokemon, dex.gen, displayedTier)}\n`; if (showDetails) { let weighthit = 20; if (pokemon.weighthg >= 2000) { @@ -711,7 +711,7 @@ export const commands: Chat.ChatCommands = { break; case 'item': const item = dex.items.get(newTarget.name); - buffer += `|raw|${Chat.getDataItemHTML(item)}\n`; + buffer += `|c|${user.getIdentity()}|/raw ${Chat.getDataItemHTML(item)}\n`; if (showDetails) { details = { Gen: String(item.gen), @@ -743,7 +743,7 @@ export const commands: Chat.ChatCommands = { break; case 'move': const move = dex.moves.get(newTarget.name); - buffer += `|raw|${Chat.getDataMoveHTML(move)}\n`; + buffer += `|c|${user.getIdentity()}|/raw ${Chat.getDataMoveHTML(move)}\n`; if (showDetails) { details = { Priority: String(move.priority), @@ -849,7 +849,7 @@ export const commands: Chat.ChatCommands = { break; case 'ability': const ability = dex.abilities.get(newTarget.name); - buffer += `|raw|${Chat.getDataAbilityHTML(ability)}\n`; + buffer += `|c|${user.getIdentity()}|/raw ${Chat.getDataAbilityHTML(ability)}\n`; if (showDetails) { details = { Gen: String(ability.gen) || 'CAP', @@ -863,7 +863,7 @@ export const commands: Chat.ChatCommands = { } if (showDetails) { - buffer += `|raw|${Object.entries(details).map(([detail, value]) => ( + buffer += `|c|${user.getIdentity()}|/raw ${Object.entries(details).map(([detail, value]) => ( value === '' ? detail : `${detail}: ${value}` )).join(" |  ")}\n`; } @@ -1983,7 +1983,7 @@ export const commands: Chat.ChatCommands = { } } buf.push(``); - return this.sendReply(`|raw|${buf.join("")}`); + return this.sendReply(`|c|${user.getIdentity()}|/raw ${buf.join("")}`); }, formathelphelp: [ `/formathelp [format] - Provides information on the given [format].`,