From ca85f2fb4ecf65925c00028cda4deffa9b92a7ad Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 17 Sep 2020 15:05:22 +0200 Subject: [PATCH] [MIRROR] Makes GHOST_SIGHT not show messages from mobs that dont have a client to reduce chatspam (#849) * Makes GHOST_SIGHT not show messages from mobs that dont have a client to reduce chatspam (#53707) * Makes GHOST_SIGHT not show messages from mobs that dont have a client to reduce chatspam Co-authored-by: Azarak --- code/datums/emotes.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/emotes.dm b/code/datums/emotes.dm index 19575faa0f4..9d8090913fe 100644 --- a/code/datums/emotes.dm +++ b/code/datums/emotes.dm @@ -68,7 +68,7 @@ if(!M.client || isnewplayer(M)) continue var/T = get_turf(user) - if(M.stat == DEAD && M.client && (M.client.prefs.chat_toggles & CHAT_GHOSTSIGHT) && !(M in viewers(T, null))) + if(M.stat == DEAD && M.client && user.client && (M.client.prefs.chat_toggles & CHAT_GHOSTSIGHT) && !(M in viewers(T, null))) M.show_message("[FOLLOW_LINK(M, user)] [dchatmsg]") if(emote_type == EMOTE_AUDIBLE)