mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user