From 9d87a18a3dbe2e09375b47cba7f702aae9cc721c Mon Sep 17 00:00:00 2001 From: SoundScopes Date: Tue, 23 Jun 2015 19:20:35 +0100 Subject: [PATCH] Dead Emote stuff --- code/modules/mob/emote.dm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/emote.dm b/code/modules/mob/emote.dm index 281933fb..a4cd80dd 100644 --- a/code/modules/mob/emote.dm +++ b/code/modules/mob/emote.dm @@ -100,8 +100,13 @@ if(istype(M, /mob/new_player)) continue - if(M.client && M.client.holder && (M.client.holder.rights & R_ADMIN|R_MOD) && (M.client.prefs.toggles & CHAT_DEAD)) // Show the emote to admins/mods - M << message + if(!M.client) + continue - else if(M.stat == DEAD && (M.client.prefs.toggles & CHAT_DEAD)) // Show the emote to regular ghosts with deadchat toggled on - M.show_message(message, 2) + if(M.client.prefs.toggles & CHAT_DEAD) + + if(M.client.holder && M.client.holder.rights & (R_ADMIN|R_MOD)) // Show the emote to admins/mods + M << message + + if(M.stat == DEAD) // Show the emote to regular ghosts + M.show_message(message, 2)