Sentences now auto-punctuate if there's no punctuation. (#6510)

See title. Shouldn't interfere with most if not all cases, however I've no way of testing bolding as it just doesn't work locally - theoretically, should be fine.
This commit is contained in:
Matt Atlas
2019-06-05 23:28:46 +03:00
committed by Erki
parent df5f65d76e
commit a4e81e6476
2 changed files with 45 additions and 0 deletions
+4
View File
@@ -176,6 +176,10 @@ proc/get_radio_key_from_channel(var/channel)
message = trim_left(message)
var/ending = copytext(message, length(message), (length(message) + 1))
if(ending != "!" && ending != "." && ending != "?" && ending != "-")
message += "."
//parse the language code and consume it
if(!speaking)
speaking = parse_language(message)