From 56320224bab8c137f54a8dd01fb958b1f8c2984d Mon Sep 17 00:00:00 2001 From: QuoteFox <49098813+quotefox@users.noreply.github.com> Date: Sat, 9 Jan 2021 13:18:47 +0000 Subject: [PATCH] fixes emoting with "*" fixes emoting with "*" --- code/game/say.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/game/say.dm b/code/game/say.dm index 5fe6024f..056db2f6 100644 --- a/code/game/say.dm +++ b/code/game/say.dm @@ -139,9 +139,11 @@ GLOBAL_LIST_INIT(freqtospan, list( return "[copytext_char("[freq]", 1, 4)].[copytext_char("[freq]", 4, 5)]" /atom/movable/proc/attach_spans(input, list/spans) + if((input[1] == "!") && (length(input) > 2)) + return var/customsayverb = findtext(input, "*") if(customsayverb) - input = capitalize(copytext(input, length(input[customsayverb]) + 1)) + input = capitalize(copytext(input, customsayverb + length(input[customsayverb]))) if(input) return "[message_spans_start(spans)][input]" else