Fixing Spam Prevention

Links the spam prevention to verbs, and removes the proc references. This way, automatic emotes do not cause them to be triggered.
This commit is contained in:
skull132
2016-01-14 15:14:49 +02:00
parent 4dc1bc31ac
commit 6d0cb7dd25
22 changed files with 44 additions and 74 deletions
+3 -1
View File
@@ -89,7 +89,9 @@
..() //redirect to hsrc.Topic()
/client/proc/handle_spam_prevention(var/message, var/mute_type)
/client/proc/handle_spam_prevention(var/message, var/mute_type, var/pass = 1)
if (pass)
return 0
if(config.automute_on && !holder)
if(src.last_message_time > world.time - SPAM_TIMER * 10)
if(src.last_message_timer > SPAM_TRIGGER_AUTOMUTE)