BUG: Fix the client failing to send garbling chat messages

This commit is contained in:
bananarama92 2025-04-10 22:44:29 +02:00
parent 963097b98b
commit 313c44706e
No known key found for this signature in database
GPG key ID: E83C7D3B5DA36248

View file

@ -3169,12 +3169,8 @@ function ChatRoomGenerateChatRoomChatMessage(type, msg, replyId) {
}
// Chat messages are always garbled, unless the no speech restriction is lifted
let process = {
effects: [],
text: msg,
};
process = SpeechTransformProcess(Player, msg, SpeechTransformSenderEffects);
const process = SpeechTransformProcess(Player, msg, SpeechTransformSenderEffects);
msg = process.text;
// We always garble, but if "no speech garbling" is enabled,
// we also send down the ungarbled message if it's different