Adds more recognised punctuation to autopunctuation. (#6811)

See title. Adds ", ', ,, :, and ;.
This commit is contained in:
MarinaGryphon
2019-08-05 20:48:57 +03:00
committed by Erki
parent 3d7430764f
commit fb30b50695
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ proc/get_radio_key_from_channel(var/channel)
message = trim_left(message)
var/static/list/correct_punctuation = list("!" = TRUE, "." = TRUE, "?" = TRUE, "-" = TRUE, "~" = TRUE, "*" = TRUE, "/" = TRUE, ">" = TRUE,)
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))
if(ending && !correct_punctuation[ending])
message += "."