mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 20:11:04 +01:00
Adds more recognised punctuation to autopunctuation. (#6811)
See title. Adds ", ', ,, :, and ;.
This commit is contained in:
@@ -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 += "."
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
author: MoondancerPony
|
||||
delete-after: True
|
||||
changes:
|
||||
- rscadd: "Added more punctuation to autopunctuation."
|
||||
Reference in New Issue
Block a user