From e5a7f294f67377a8975abc792e534ed9ee361424 Mon Sep 17 00:00:00 2001 From: Dimach Date: Tue, 7 Nov 2023 14:54:31 +0000 Subject: [PATCH] Fix: ban reason compute unicode chars correctly --- code/modules/admin/sql_ban_system.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/sql_ban_system.dm b/code/modules/admin/sql_ban_system.dm index d3693064a2bc5be..742778d5a4a9da8 100644 --- a/code/modules/admin/sql_ban_system.dm +++ b/code/modules/admin/sql_ban_system.dm @@ -472,7 +472,7 @@ reason = href_list["reason"] if(!reason) error_state += "No reason was provided." - if(length(reason) > MAX_REASON_LENGTH) + if(length_char(reason) > MAX_REASON_LENGTH) error_state += "Reason cannot be more than [MAX_REASON_LENGTH] characters." if(href_list["editid"]) edit_id = href_list["editid"]