mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-05 21:17:43 -05:00
Use |uhtml| for repeats to prevent flooding (#8594)
This commit is contained in:
parent
4793b33cf1
commit
9ab15060cf
|
|
@ -96,7 +96,7 @@ export const Repeats = new class {
|
|||
const repeatedPhrase = repeat.faq ?
|
||||
visualizeFaq(roomFaqs[targetRoom.roomid][repeat.id]) : Chat.formatText(phrase, true);
|
||||
const formattedText = repeat.isHTML ? phrase : repeatedPhrase;
|
||||
targetRoom.add(`|html|<div class="infobox">${formattedText}</div>`);
|
||||
targetRoom.add(`|uhtml|repeat-${repeat.id}|<div class="infobox">${formattedText}</div>`);
|
||||
targetRoom.update();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user