From 62a3ab741708ee938d87c31fef33132eede6c40a Mon Sep 17 00:00:00 2001 From: CthulhuOnIce <41597119+CthulhuOnIce@users.noreply.github.com> Date: Thu, 18 Jul 2019 15:23:40 -0500 Subject: [PATCH] fixes emote bug puts the punctuation after `if(!msg) return` --- code/datums/emotes.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/datums/emotes.dm b/code/datums/emotes.dm index 60671d1e2d0c5..9d9b95e822472 100644 --- a/code/datums/emotes.dm +++ b/code/datums/emotes.dm @@ -48,10 +48,6 @@ msg = replace_pronoun(user, msg) - var/end = copytext(msg, lentext(message)) - if(!(end in list("!", ".", "?", ":", "\"", "-"))) - msg += "." - if(isliving(user)) var/mob/living/L = user for(var/obj/item/implant/I in L.implants) @@ -59,6 +55,10 @@ if(!msg) return + + var/end = copytext(msg, lentext(message)) + if(!(end in list("!", ".", "?", ":", "\"", "-"))) + msg += "." user.log_message(msg, LOG_EMOTE)