probably fix html injection on the janky chat page
This commit is contained in:
parent
d8f363e4be
commit
8080cd353b
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ module.exports = function(CurrentUser, CurrentPacket) {
|
|||
// Write chat message to stream asociated with chat channel
|
||||
global.StreamsHandler.sendToStream(CurrentPacket.target, osuPacketWriter.toBuffer, CurrentUser.uuid);
|
||||
if (CurrentPacket.target == "#osu")
|
||||
global.addChatMessage(`${CurrentUser.username}: ${CurrentPacket.message}`);
|
||||
global.addChatMessage(`${CurrentUser.username}: ${CurrentPacket.message.replaceAll("<", "<").replaceAll(">", ">")}`);
|
||||
|
||||
botCommandHandler(CurrentUser, CurrentPacket.message, CurrentPacket.target);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue