Skip to content

Commit

Permalink
Makes GHOST_SIGHT not show messages from mobs that dont have a client…
Browse files Browse the repository at this point in the history
… to reduce chatspam (tgstation#53707)
  • Loading branch information
Azarak authored Sep 17, 2020
1 parent 16dacb7 commit d841171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/datums/emotes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d841171

Please sign in to comment.