[S] Fixes an oversight for a different exploit fix (#25041)

* Moves it up to where it should be

* Put the first part back
This commit is contained in:
BiancaWilkson
2024-04-07 16:02:10 -05:00
committed by GitHub
parent cb691a0bb5
commit a50dc50849
2 changed files with 6 additions and 6 deletions
+5
View File
@@ -521,6 +521,11 @@
var/mob/living/sender = user
if(HAS_TRAIT(sender, TRAIT_EMOTE_MUTE) && intentional)
return FALSE
if(isbrain(sender))
var/mob/living/brain/B = user
if(istype(B.container, /obj/item/mmi/robotic_brain)) //Robobrains can't be silenced and still emote
var/obj/item/mmi/robotic_brain/robobrain = B.container
return !robobrain.silenced
else
// deadchat handling
if(check_mute(user.client?.ckey, MUTE_DEADCHAT))