Skip to content

Commit

Permalink
chore(chat): remove outdated message escape on serverside (#40)
Browse files Browse the repository at this point in the history
now it's handled on clientside
  • Loading branch information
xxshady authored May 8, 2024
1 parent a975f14 commit e777272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chat/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ alt.onClient(CHAT_MESSAGE_EVENT, (player, msg) => {
if (msg.length > 0) {
alt.log("[chat:msg] " + player.name + ": " + msg);

alt.emitAllClients(CHAT_MESSAGE_EVENT, player.name, msg.replace(/</g, "&lt;").replace(/'/g, "&#39").replace(/"/g, "&#34"));
alt.emitAllClients(CHAT_MESSAGE_EVENT, player.name, msg);
}
}
});
Expand Down

0 comments on commit e777272

Please sign in to comment.