Skip to content

Commit

Permalink
[MIRROR] fix announcer text len (#4985)
Browse files Browse the repository at this point in the history
* fix announcer text len (#4345)

* [MIRROR] fix announcer text len

---------

Co-authored-by: hack-wrench <[email protected]>
Co-authored-by: StealsThePRs <[email protected]>
  • Loading branch information
3 people authored Sep 1, 2024
1 parent 7158d6b commit c18000f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
balloon_alert(user, "bad title!")
return

var/input = sanitize_text(reject_bad_text(tgui_input_text(user, "Choose the bodytext of the announcement.", "Announcement Text", multiline = TRUE), ascii_only = FALSE))
var/input = sanitize_text(reject_bad_text(tgui_input_text(user, "Choose the bodytext of the announcement.", "Announcement Text", multiline = TRUE), max_length = MAX_MESSAGE_LEN, ascii_only = FALSE))
if(!input)
balloon_alert(user, "bad text!")
return
Expand Down

0 comments on commit c18000f

Please sign in to comment.