mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
[MIRROR] [s] Audits object say() uses to make handling text more safe (#7927)
* [s] Audits object say() uses to make handling text more safe (#61147) Made all say()s deal with encoding, audited all uses of say() to prevent double encoding or like, manually inserting span(). I left some stuff without sanitize that only draws from the code, since it's hell to clean up otherwise. That and I let admins do whatever the fuck they want * [s] Audits object say() uses to make handling text more safe Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
co-authored by
LemonInTheDark
parent
f208462312
commit
302798dbb7
@@ -54,15 +54,15 @@
|
||||
if(INCLUSIVE_MODE)
|
||||
recorded = raw_message
|
||||
listening = FALSE
|
||||
say("Activation message is '[recorded]'.", message_language)
|
||||
say("Activation message is '[recorded]'.", sanitize = FALSE, language = message_language)
|
||||
if(EXCLUSIVE_MODE)
|
||||
recorded = raw_message
|
||||
listening = FALSE
|
||||
say("Activation message is '[recorded]'.", message_language)
|
||||
say("Activation message is '[recorded]'.", sanitize = FALSE, language = message_language)
|
||||
if(RECOGNIZER_MODE)
|
||||
recorded = speaker.GetVoice()
|
||||
listening = FALSE
|
||||
say("Your voice pattern is saved.", message_language)
|
||||
say("Your voice pattern is saved.", language = message_language)
|
||||
if(VOICE_SENSOR_MODE)
|
||||
if(length(raw_message))
|
||||
send_pulse()
|
||||
|
||||
Reference in New Issue
Block a user