Macro specific spam protection + mouse abuse (#2022)

Someone forgot to spam check squeaking.

I forgot to upload anti-macro spam measures.

So let's have both in one go, yay!
This commit is contained in:
skull132
2017-03-31 19:32:50 +03:00
committed by GitHub
parent fc315180b3
commit fe5712dab6
3 changed files with 57 additions and 15 deletions
@@ -184,16 +184,37 @@
/mob/living/simple_animal/mouse/verb/squeak_loud_verb()
set name = "Squeal!"
set category = "Abilities"
if (usr.client.handle_spam_prevention(null, MUTE_IC))
return
else if (usr.client.prefs.muted & MUTE_IC)
usr << "<span class='danger'>You are muted from IC emotes.</span>"
return
squeak_loud(1)
/mob/living/simple_animal/mouse/verb/squeak_soft_verb()
set name = "Soft Squeaking"
set category = "Abilities"
if (usr.client.handle_spam_prevention(null, MUTE_IC))
return
else if (usr.client.prefs.muted & MUTE_IC)
usr << "<span class='danger'>You are muted from IC emotes.</span>"
return
squeak_soft(1)
/mob/living/simple_animal/mouse/verb/squeak_verb()
set name = "Squeak"
set category = "Abilities"
if (usr.client.handle_spam_prevention(null, MUTE_IC))
return
else if (usr.client.prefs.muted & MUTE_IC)
usr << "<span class='danger'>You are muted from IC emotes.</span>"
return
squeak(1)