mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Tweaks for spam
Added non-randomized example tokens at start. Added filter limitation. Ion storm will replace tokens with garbage. Spam disaster lasts longer and is more severe.
This commit is contained in:
@@ -61,7 +61,11 @@ var/global/list/obj/machinery/message_server/message_servers = list()
|
||||
var/active = 1
|
||||
var/decryptkey = "password"
|
||||
|
||||
var/list/spamfilter = list()
|
||||
//Spam filtering stuff
|
||||
var/list/spamfilter = list("You have won", "your prize", "male enhancement", "shitcurity", \
|
||||
"are happy to inform you", "account number", "enter your PIN")
|
||||
//Messages having theese tokens will be rejected by server. Case sensitive
|
||||
var/spamfilter_limit = 10 //Maximal amount of tokens
|
||||
var/const/errorcode_spam_rejected = MESSAGE_SERVER_SPAM_REJECT
|
||||
|
||||
/obj/machinery/message_server/New()
|
||||
|
||||
Reference in New Issue
Block a user