Skip to content

Commit

Permalink
Fix: ban reason compute unicode chars correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimach committed Dec 5, 2023
1 parent 4be1adb commit 0d04da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/admin/sql_ban_system.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 0d04da9

Please sign in to comment.