From 404c12f61efa735ed4a5a02296ff9292fdafeba2 Mon Sep 17 00:00:00 2001 From: Mloc-Argent Date: Sat, 17 Aug 2013 14:18:01 +0100 Subject: [PATCH] Much more probable fix for deadchat breaking on clientless ghosts. Signed-off-by: Mloc-Argent --- code/modules/mob/say.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/say.dm b/code/modules/mob/say.dm index 567152b9157..5a5d1d4aa2f 100644 --- a/code/modules/mob/say.dm +++ b/code/modules/mob/say.dm @@ -57,7 +57,7 @@ if(M.client && M.client.holder && (M.client.holder.rights & R_ADMIN|R_MOD) && (M.client.prefs.toggles & CHAT_DEAD)) // Show the message to admins/mods with deadchat toggled on M << rendered //Admins can hear deadchat, if they choose to, no matter if they're blind/deaf or not. - else if(M.stat == DEAD && (M.client.prefs.toggles & CHAT_DEAD)) // Show the message to regular ghosts with deadchat toggled on. + else if(M.client && M.stat == DEAD && (M.client.prefs.toggles & CHAT_DEAD)) // Show the message to regular ghosts with deadchat toggled on. M.show_message(rendered, 2) //Takes into account blindness and such. return