fixes farting dead (#4823)

fixes #4821

wasn't anything to do with the deathgasp fix, and it was only the *me
emote, but yeah, not good

🆑 VampyrBytes
fix: No more *me emoting from your corpse!
/ 🆑
This commit is contained in:
VampyrBytes
2016-06-29 18:23:17 +01:00
committed by Fox McCloud
parent 282e8088b2
commit e783be45dc
+3 -3
View File
@@ -552,6 +552,7 @@ one is used in /datum/emote_handler/customEmote().
/datum/emote/custom/prevented(var/mob/user)
if(!user.use_me)
return "you are prevented from using custom emotes"
return ..()
// Yeah, no
/datum/emote/custom/createSelfMessage(var/mob/user, var/list/params, var/message = "")
@@ -566,9 +567,8 @@ one is used in /datum/emote_handler/customEmote().
emoteSpanClass = "game deadsay"
/datum/emote/custom/ghost/prevented(var/mob/user)
. = ..()
if(.)
return
if(!user.use_me)
return "you are prevented from using custom emotes"
if(user.client.prefs.muted & MUTE_DEADCHAT)
return "you are muted from deadchat"
if(!(user.client.prefs.toggles & CHAT_DEAD))