antispam system instead of flood,spam protect.&cursefilt
Posted: Thu Apr 26, 2007 4:30 am
Hi, i was thinking about including in the new etpro the system from ettv instead of this new flood system and spam protection. The cvars on the server side can look like:
b_antispamLines x [max lines]
b_antispamTime y [the time between sending commands (lines) to server]
And u can also include in this system the bad words filter which will be reading the bad words from the file in the etpro dir like in the etadmin mod.
cvar: b_badwordsfile file.txt
To sum up, if u spam with b_antispamLines lines or the time between sending lines to the server is shorter then b_antispamTime or the word will match with bad words list u will get muted for 1 min, then for 5 min and then for 10, 20...People wont be kicked and server will be safe from spamming and agressive ppl. Whats more 3 cvars will be replaced with 6 cvars ( b_floodMaxCommands, b_floodKickRate, b_floodKickBurst, b_floodKickTime, g_voiceChatsAllowed, b_cursefilter )
What u think?
p.s the idea of the muted icon near to the nick in the score menu like in jaymod is nice, also perm mute (u cant vote for unmute) too
Regards
b_antispamLines x [max lines]
b_antispamTime y [the time between sending commands (lines) to server]
And u can also include in this system the bad words filter which will be reading the bad words from the file in the etpro dir like in the etadmin mod.
cvar: b_badwordsfile file.txt
Code: Select all
# Bad word file.
#
#
# string or word per line
# comments start with # (as usual)
#
# if you want to match a string, at the beginning of a word, then make a space in front.
# if you want to match a string at the end of a word, then make a space at the end.
# If you want to match a complete word, make a space in front and behind.
# If you want to use regular expressions, make a regexp: in front of your string.
#
# Small regular expression help:
# ? = means the char before is optional (0 or 1 repeats) (Example: na?p = nap or np, not naap)
# * = means 0 or more repeats. (Example: na*p = naaaaaap or np)
# + = one or more of the char, behind which the '+' stands (Example: na+p = nap, naaaaap, naaaaaaaap)
# [] = 'or' for chars, not strings - n[a4]p finds 'n4p' and 'nap'
# \s = space or tab
# . = any char (example: n.p = nap, nbp, n4p, ...)
# matches: F U C K, F UUUCKK, fuck, FUUUUCK, FUCCKKKKER, mothafucker and anything like that.
regexp:f+\s*u+\s*c+\s*k+
regexp:k+\s*u+\s*r+\s*w+
# matches: noob, boon, obernoobs, noooobs, b00bs or boobs, etc.
# this one only find stuff with space or s at the end:
#regexp:[nb][o0]{2,}[bn][s\s]
# this one is more generell:
# standard badwords
What u think?
p.s the idea of the muted icon near to the nick in the score menu like in jaymod is nice, also perm mute (u cant vote for unmute) too
Regards