From 3290a998fa5773335bfa15ecea092419ef4d9640 Mon Sep 17 00:00:00 2001 From: Shadowlight213 Date: Mon, 9 Nov 2015 10:47:44 -0800 Subject: [PATCH] Makes emote bans actually work --- code/modules/mob/living/carbon/human/emote.dm | 3 +++ code/modules/mob/living/silicon/robot/emote.dm | 3 +++ 2 files changed, 6 insertions(+) diff --git a/code/modules/mob/living/carbon/human/emote.dm b/code/modules/mob/living/carbon/human/emote.dm index 8f9cd656c93..b969552279b 100644 --- a/code/modules/mob/living/carbon/human/emote.dm +++ b/code/modules/mob/living/carbon/human/emote.dm @@ -196,6 +196,9 @@ if ("me") if(silent) return + if(jobban_isbanned(src, "emote")) + src << "You cannot send custom emotes (banned)" + return if (src.client) if (client.prefs.muted & MUTE_IC) src << "You cannot send IC messages (muted)." diff --git a/code/modules/mob/living/silicon/robot/emote.dm b/code/modules/mob/living/silicon/robot/emote.dm index 5d972a4385f..a3094207873 100644 --- a/code/modules/mob/living/silicon/robot/emote.dm +++ b/code/modules/mob/living/silicon/robot/emote.dm @@ -142,6 +142,9 @@ message = "[src] looks." if ("me") + if(jobban_isbanned(src, "emote")) + src << "You cannot send custom emotes (banned)" + return if (src.client) if(client.prefs.muted & MUTE_IC) src << "You cannot send IC messages (muted)."