From fb30b5069568ef94a0aee81eb19362a2a4e65267 Mon Sep 17 00:00:00 2001 From: MarinaGryphon Date: Mon, 5 Aug 2019 12:48:57 -0500 Subject: [PATCH] Adds more recognised punctuation to autopunctuation. (#6811) See title. Adds ", ', ,, :, and ;. --- code/modules/mob/living/say.dm | 2 +- html/changelogs/MDP-punctuation.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 html/changelogs/MDP-punctuation.yml diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm index 45c69a699cf..507c1d9b8a2 100644 --- a/code/modules/mob/living/say.dm +++ b/code/modules/mob/living/say.dm @@ -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 += "." diff --git a/html/changelogs/MDP-punctuation.yml b/html/changelogs/MDP-punctuation.yml new file mode 100644 index 00000000000..f91deab8786 --- /dev/null +++ b/html/changelogs/MDP-punctuation.yml @@ -0,0 +1,4 @@ +author: MoondancerPony +delete-after: True +changes: + - rscadd: "Added more punctuation to autopunctuation." \ No newline at end of file