Makes emote bans actually work

This commit is contained in:
Shadowlight213
2015-11-09 10:47:44 -08:00
parent 7451acd893
commit 3290a998fa
2 changed files with 6 additions and 0 deletions
@@ -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 << "<span class='danger'>You cannot send IC messages (muted).</span>"
@@ -142,6 +142,9 @@
message = "<B>[src]</B> 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)."