Removes trailing whitespaces on chat messages (#9395)

This commit is contained in:
mikomyazaki
2020-07-19 11:39:08 +02:00
committed by GitHub
parent 458338cb54
commit f73a9b2e47
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ proc/get_radio_key_from_channel(var/channel)
else
message = copytext(message,3)
message = trim_left(message)
message = trim(message)
var/static/list/correct_punctuation = list("!" = TRUE, "." = TRUE, "?" = TRUE, "-" = TRUE, "~" = TRUE, "*" = TRUE, "/" = TRUE, ">" = TRUE, "\"" = TRUE, "'" = TRUE, "," = TRUE, ":" = TRUE, ";" = TRUE)
var/ending = copytext(message, length(message), (length(message) + 1))
@@ -0,0 +1,6 @@
author: mikomyazaki
delete-after: True
changes:
- bugfix: "Trailing whitespaces on chat messages is now removed, preventing messages occuring with several whitespaces and then the automatically added period."