[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 <azarak10@gmail.com>
This commit is contained in:
SkyratBot
2020-09-17 15:05:22 +02:00
committed by GitHub
co-authored by Azarak
parent 2ae256472a
commit ca85f2fb4e
+1 -1
View File
@@ -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)