Fixes HTML in server admin announcements (#81056)

## About The Pull Request

Fixes adding HTML in the OOC announce proc, updates the proc
documentation that the argument is for escaping HTML, not enabling it

## Why It's Good For The Game

Admins sometimes want to put links or images in the server announcement

## Changelog

🆑 LT3
fix: Server announcements again no longer escape HTML by default
/🆑
This commit is contained in:
lessthanthree
2024-01-23 20:16:50 +01:00
committed by GitHub
parent bdeb7dc93f
commit 85ee21ea7e
+3 -3
View File
@@ -16,8 +16,8 @@
* * play_sound - if TRUE, play a sound with the announcement (based on player option)
* * sound_override - optional, override the default announcement sound
* * sender_override - optional, modifies the sender of the announcement
* * encode_title - if TRUE, the title will be HTML encoded
* * encode_text - if TRUE, the text will be HTML encoded
* * encode_title - if TRUE, the title will be HTML encoded (escaped)
* * encode_text - if TRUE, the text will be HTML encoded (escaped)
*/
/proc/send_ooc_announcement(
@@ -28,7 +28,7 @@
sound_override = 'sound/misc/bloop.ogg',
sender_override = "Server Admin Announcement",
encode_title = TRUE,
encode_text = TRUE,
encode_text = FALSE,
)
if(isnull(text))
return