Rework spam protection (#6201)

This commit is contained in:
Erki
2019-04-01 20:43:24 +02:00
committed by Werner
parent 14f1aa238a
commit 015fce2f48
16 changed files with 73 additions and 109 deletions
@@ -102,16 +102,6 @@
if (!message)
return
if (src.client)
if(client.prefs.muted & MUTE_IC)
to_chat(src, "You cannot send IC messages (muted).")
return
if (src.client.handle_spam_prevention(message,MUTE_IC))
return
friend_talk(message)
/mob/abstract/mental/friend/proc/friend_talk(message)
message = trim(copytext(sanitize(message), 1, MAX_MESSAGE_LEN))
if(!message)