Raised This Month: $32 Target: $400
 8% 

REGEX Word Filter


Post New Thread Reply   
 
Thread Tools Display Modes
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 06-13-2009 , 00:21   Re: REGEX Word Filter
Reply With Quote #21

Show me your config file
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 06-14-2009 , 08:17   Re: REGEX Word Filter
Reply With Quote #22

Added a power down feature, and a few twiddles.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
atmuh
Member
Join Date: Nov 2008
Old 06-16-2009 , 04:55   Re: REGEX Word Filter
Reply With Quote #23

here is my config i like to mess with what people say and id like if it worked so i could add a lot more

Code:
"Censor"
{
    "pubfag"
    {
        "chatpattern"        "'pubfag' 'CASELESS'"
        "replace"            "fine sir"
    }
    "umad1"
    {
        "chatpattern"        "'u mad'"
        "chatpattern"        "'umad'"
        "replace"            "I am a complete and utter faggot and should be immediately banned."
    }
        "f10"
    {
        "chatpattern"        "'f10+enter' 'CASELESS'"
        "replace"            "Execute a local disconnect."
    }
}
atmuh is offline
Jaguar_hl
Junior Member
Join Date: Apr 2009
Old 06-18-2009 , 11:47   Re: REGEX Word Filter
Reply With Quote #24

What pattern do I need to use to block IP address spaming on my servers? If I use pattern like "^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$" it does not load because of it lengtht...
Jaguar_hl is offline
Dirton
BANNED
Join Date: Oct 2008
Old 06-19-2009 , 19:57   Re: REGEX Word Filter
Reply With Quote #25

I wrote like this, 1 for IP, the other for DNS:
Code:
"Censor"
{
    "IPfilter"
    {
        "chatpattern"        "\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}:?\d*"
        "replace"        "[adresas pasalintas]"
        "warn"            "IP reklamavimas draudziamas!"
        "action"        "sm_slap #%u 0"
    }
    "DNS1"
    {
        "chatpattern"        "[a-zA-Z0-9]*\.?[a-zA-Z0-9]*\.[a-zA-Z]{2,3}"
        "warn"            "DNS adresu reklamavimas draudziamas!"
        "replace"        "[adresas pasalintas]"
        "action"        "sm_slap #%u 0"
    }
}

Last edited by Dirton; 06-20-2009 at 07:07.
Dirton is offline
Jaguar_hl
Junior Member
Join Date: Apr 2009
Old 06-21-2009 , 06:39   Re: REGEX Word Filter
Reply With Quote #26

Thank you!
Jaguar_hl is offline
sciep
New Member
Join Date: Jul 2009
Old 07-01-2009 , 04:55   Re: REGEX Word Filter
Reply With Quote #27

Hi,

First thanks for this script, but I've got a question;
Does it work with sourcebans? I changed the config that if someone says a disease, he gets a permanent ban, but this doesn't work.

This is the RCON action in the config:
"action" "sm_ban #%u 0 Swearing with diseases"

Thank you for helping.



Here is my config:

"Censor"
{
"Less bad"
{
"chatpattern" "fuck 'CASELESS'"
"chatpattern" "fock 'CASELESS'"
"chatpattern" "fack 'CASELESS'"
"chatpattern" "cunt 'CASELESS'"
"chatpattern" "slet 'CASELESS'"
"chatpattern" "hoer 'CASELESS'"
"chatpattern" "flikker 'CASELESS'"
"chatpattern" "gay 'CASELESS'"
"chatpattern" "homo 'CASELESS'"
"chatpattern" "motherfucker 'CASELESS'"
"chatpattern" "bastard 'CASELESS'"
"chatpattern" "cock 'CASELESS'"
"chatpattern" "cocksucker 'CASELESS'"
"chatpattern" "wanker 'CASELESS'"
"chatpattern" "slut 'CASELESS'"
"replace" "I'm such a noob, because I typ bad words!"
}
"Disease filter"
{
"chatpattern" "cancer 'EXTENDED'"
"chatpattern" "kanker 'EXTENDED'"
"chatpattern" "kenker 'EXTENDED'"
"chatpattern" "tyfus 'EXTENDED'"
"chatpattern" "tering 'EXTENDED'"
"chatpattern" "aids 'EXTENDED'"
"action" "sm_ban #%u 0 Swearing with diseases"
}
}
sciep is offline
AiLEX
New Member
Join Date: Sep 2009
Old 09-12-2009 , 16:44   Re: REGEX Word Filter
Reply With Quote #28

CASELESS flag is not working with non latin symbols
AiLEX is offline
Dirton
BANNED
Join Date: Oct 2008
Old 09-16-2009 , 13:49   Re: REGEX Word Filter
Reply With Quote #29

Could you look into errors like:
Code:
L 09/16/2009 - 20:20:12: [SM] Plugin encountered error 15: Array index is out of bounds
L 09/16/2009 - 20:20:12: [SM] Displaying call stack trace for plugin "sm_regexfilter.smx":
L 09/16/2009 - 20:20:12: [SM]   [0]  Line 77, C:\CSS\cstrike\addons\sourcemod\scripting\sm_regexfilter.sp::OnClientDisconnect()
Dirton is offline
tazzle0870
Senior Member
Join Date: May 2010
Old 09-18-2010 , 23:03   Re: REGEX Word Filter
Reply With Quote #30

this filter works great .However I blocked go to hell
so when someone types hello its says plz watch lang. any way around this
tazzle0870 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode