Better spam prevention placing (#680)

Removes the spam prevention procs from all background procs, and ensures that they're only placed on procs that the user can initiate.

This will remove the chance of having spam prevention trigger from automated emotes.

Fixes #613
This commit is contained in:
skull132
2016-08-05 15:21:12 +03:00
committed by GitHub
parent 0a6e48ab8a
commit 28b73e68cc
12 changed files with 29 additions and 28 deletions
+8
View File
@@ -26,6 +26,10 @@
*/
set_typing_indicator(0)
if (src.client.handle_spam_prevention(message, MUTE_IC))
return
usr.say(message)
/mob/verb/me_verb(message as text)
@@ -39,6 +43,10 @@
message = sanitize(message)
set_typing_indicator(0)
if (src.client.handle_spam_prevention(message, MUTE_IC))
return
if(use_me)
usr.emote("me",usr.emote_type,message)
else