From 85ee21ea7e9064bbdec28fda5a8858fd1ab9e7ba Mon Sep 17 00:00:00 2001 From: lessthanthree <83487515+lessthnthree@users.noreply.github.com> Date: Tue, 23 Jan 2024 19:16:50 +0000 Subject: [PATCH] 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 :cl: LT3 fix: Server announcements again no longer escape HTML by default /:cl: --- code/__HELPERS/announcements.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/__HELPERS/announcements.dm b/code/__HELPERS/announcements.dm index 7a27be43a75..d8653a2eb05 100644 --- a/code/__HELPERS/announcements.dm +++ b/code/__HELPERS/announcements.dm @@ -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