AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   REGEX Word Filter (https://forums.alliedmods.net/showthread.php?t=71867)

Twilight Suzuka 06-13-2009 00:21

Re: REGEX Word Filter
 
Show me your config file

Twilight Suzuka 06-14-2009 08:17

Re: REGEX Word Filter
 
Added a power down feature, and a few twiddles.

atmuh 06-16-2009 04:55

Re: REGEX Word Filter
 
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."
    }
}


Jaguar_hl 06-18-2009 11:47

Re: REGEX Word Filter
 
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...

Dirton 06-19-2009 19:57

Re: REGEX Word Filter
 
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"
    }
}


Jaguar_hl 06-21-2009 06:39

Re: REGEX Word Filter
 
Thank you!

sciep 07-01-2009 04:55

Re: REGEX Word Filter
 
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"
}
}

AiLEX 09-12-2009 16:44

Re: REGEX Word Filter
 
CASELESS flag is not working with non latin symbols

Dirton 09-16-2009 13:49

Re: REGEX Word Filter
 
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()


tazzle0870 09-18-2010 23:03

Re: REGEX Word Filter
 
this filter works great .However I blocked go to hell
so when someone types hello its says plz watch lang. any way around this


All times are GMT -4. The time now is 22:04.

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