Raised This Month: $ Target: $400
 0% 

REGEX Word Filter


Post New Thread Reply   
 
Thread Tools Display Modes
Wilczek
AlliedModders Donor
Join Date: Oct 2012
Location: Poland
Old 07-27-2016 , 01:02   Re: REGEX Word Filter
Reply With Quote #161

Do you have set it up like this?

PHP Code:
"Censor"
{
    
"ExampleLimit"
    
{
        
"chatpattern"        "test 'CASELESS'"
        "warn"                "Don't swear!"
        "immunity"            "b"
        "replace"            "*****"
        "action"            "sm_slap #%u"
        "limit"                "1"
        "punish"            "sm_ban #%u 10 [Don't swear]"
    
}

__________________
Wilczek is offline
fiala06
AlliedModders Donor
Join Date: Mar 2009
Location: Eugene, OR
Old 07-28-2016 , 00:04   Re: REGEX Word Filter
Reply With Quote #162

Quote:
Originally Posted by Wilczek View Post
Do you have set it up like this?

PHP Code:
"Censor"
{
    
"ExampleLimit"
    
{
        
"chatpattern"        "test 'CASELESS'"
        "warn"                "Don't swear!"
        "immunity"            "b"
        "replace"            "*****"
        "action"            "sm_slap #%u"
        "limit"                "1"
        "punish"            "sm_ban #%u 10 [Don't swear]"
    
}

Just tried that and got nothing. Not even the warning. Even moved it to the top of my cfg and completely replace my cfg file with that only.

I have others that block racist remarks and set them to block the text that work fine but it seems whenever there is an action or punish they don't work.
__________________
fiala06 is offline
Wilczek
AlliedModders Donor
Join Date: Oct 2012
Location: Poland
Old 07-28-2016 , 00:44   Re: REGEX Word Filter
Reply With Quote #163

Please, post your regex config and a plugin list.
__________________
Wilczek is offline
fiala06
AlliedModders Donor
Join Date: Mar 2009
Location: Eugene, OR
Old 07-28-2016 , 10:31   Re: REGEX Word Filter
Reply With Quote #164

Quote:
Originally Posted by Wilczek View Post
Please, post your regex config and a plugin list.
SM Info
Code:
 SourceMod Version Information:
    SourceMod Version: 1.8.0.5919
    SourcePawn Engine: SourcePawn 1.8, jit-x86 (build 1.8.0.5919)
    SourcePawn API: v1 = 4, v2 = 11
    Compiled on: Jul  8 2016 13:07:46
    Built from: https://github.com/alliedmodders/sourcemod/commit/2fb976b
    Build ID: 5919:2fb976b
    http://www.sourcemod.net/
Plugins
Code:
[SM] Listing 53 plugins:
  01 "Admin File Reader" (1.8.0.5919) by AlliedModders LLC
  02 "Admin Help" (1.8.0.5919) by AlliedModders LLC
  03 "Admin Menu" (1.8.0.5919) by AlliedModders LLC
  04 "adminWatch" (1.2.2) by Pat841
  05 "Anti-Flood" (1.8.0.5919) by AlliedModders LLC
  06 "Basic Chat" (1.8.0.5919) by AlliedModders LLC
  07 "Basic Comm Control" (1.8.0.5919) by AlliedModders LLC
  08 "Basic Commands" (1.8.0.5919) by AlliedModders LLC
  09 "Basic Info Triggers" (1.8.0.5919) by AlliedModders LLC
  10 "Basic Votes" (1.8.0.5919) by AlliedModders LLC
  11 "[TF2] Custom Boss Spawner" (4.3.1) by Tak (chaosxk)
  12 "[TF2] Building Hats" (1.9) by Pelipoika
  13 "CallAdmin" (0.1.5) by Impact, Popoklopsi
  14 "CallAdmin: Steam module" (0.1.5) by Impact, Popoklopsi
  15 "Client Preferences" (1.8.0.5919) by AlliedModders LLC
  16 "Fun Commands" (1.8.0.5919) by AlliedModders LLC
  17 "Fun Votes" (1.8.0.5919) by AlliedModders LLC
  18 "gameME Plugin" (4.7.2) by TTS Oetzel & Goerz GmbH
  19 "[Any] Deluxe Godmode" (2.3.1) by DarthNinja
  20 "Map Rate" (1.2) by Ryan "FLOOR_MASTER" Mannion & Chefe
  21 <Failed> "Nextmap" (1.8.0.5919) by AlliedModders LLC
  22 "Player Commands" (1.8.0.5919) by AlliedModders LLC
  23 "Reserved Slots" (1.8.0.5919) by AlliedModders LLC
  24 "SourceBans Checker" ((SB++) 1.5.4.6) by psychonic, Ca$h Munny, Sarabveer(VEER™)
  25 "SourceBans: Admin Config Loader" ((SB++) 1.5.4.6) by AlliedModders LLC, Sarabveer(VEER™)
  26 "Player-Teleport by Dr. HyperKiLLeR" (1.2.0.0) by Dr. HyperKiLLeR
  27 "REGEX word filter" (1.2) by Twilight Suzuka
  28 "Sound Commands" (1.8.0.5919) by AlliedModders LLC
  29 "SourceBans++" (1.5.4.6) by SourceBans Development Team, Sarabveer(VEER™)
  30 "SourceComms" ((SB++) 1.5.4.6) by Alex, Sarabveer(VEER™)
  31 "SourceSleuth" ((SB++) 1.5.4.6) by ecca, Sarabveer(VEER™)
  32 "TF2IDB" (0.93) by Bottiger
  33 "[DEV] TF2ItemsInfo" (1.8.17.7-20131121) by Leonardo
  34 "[TF2] Thirdperson" (2.1.0) by DarthNinja
  35 "[UMC] Admin Menu" (3.4.5) by Steell
  36 "[UMC] Ultimate Mapchooser Core" (3.4.5) by Steell
  37 "[UMC] Echo Nextmap" (3.4.5) by Steell
  38 "[UMC] End of Map Vote Warnings" (3.4.5) by Steell
  39 "[UMC] End of Map Vote" (3.4.5) by Steell
  40 "[UMC] Map Commands" (3.4.5) by Steell
  41 "[UMC] Map Rate Reweight" (3.4.5) by Steell
  42 "[UMC] Nominations" (3.4.5) by Steell
  43 "[UMC] Player Count Monitor" (3.4.5) by Steell
  44 "[UMC] Player Limits" (3.4.5) by Steell
  45 "[UMC] Post-Played Exclusion" (3.4.5) by Sazpaimon and Steell
  46 "[UMC] Prefix Exclusion" (3.4.5) by Steell
  47 "[UMC] Random Cycle" (3.4.5) by Steell
  48 "[UMC] Rock The Vote" (3.4.5) by Steell
  49 "[UMC] Time Limits" (3.4.5) by Steell
  50 "[UMC] Vote Command" (3.4.5) by Steell
  51 "[UMC] Map Weight" (3.4.5) by Steell
  52 "Unusual" (2.19) by Erreur 500
  53 "[ANY] Warnings" (1.0.0) by Astrak, Riotline
here if the cfg
Code:
"Censor"
{
    "ExampleLimit2"
    {
        "chatpattern"       "test 'CASELESS'"
        "warn"              "Don't swear!"
        "immunity"          "b"
        "replace"           "*****"
        "action"               "sm_slap #%u"
        "limit"             "1"
        "punish"            "sm_ban #%u 10 [Don't swear]"
    }
    "Racist"
    {
        "chatpattern"        "beaner 'CASELESS'"
        "chatpattern"        "chee-chee 'CASELESS'"
        "chatpattern"        "chinaman 'CASELESS'"
        "chatpattern"        "chink 'CASELESS'"
        "chatpattern"        "cholo 'CASELESS'"
        "chatpattern"        "coonass 'CASELESS'"
        "chatpattern"        "dune coon 'CASELESS'"
        "chatpattern"        "gable 'CASELESS'"
        "chatpattern"        "gin jockey 'CASELESS'"
        "chatpattern"        "groid 'CASELESS'"
        "chatpattern"        "golliwog 'CASELESS'"
        "chatpattern"        "golly doll 'CASELESS'"
        "chatpattern"        "gook 'CASELESS'"
        "chatpattern"        "goy 'CASELESS'"
        "chatpattern"        "hadji 'CASELESS'"
        "chatpattern"        "haji 'CASELESS'"
        "chatpattern"        "hajhi 'CASELESS'"
        "chatpattern"        "hebe 'CASELESS'"
        "chatpattern"        "hymie 'CASELESS'"
        "chatpattern"        "jig 'CASELESS'"
        "chatpattern"        "jijjiboo 'CASELESS'"
        "chatpattern"        "jungle bunny 'CASELESS'"
        "chatpattern"        "heeb 'CASELESS'"
        "chatpattern"        "kafir 'CASELESS'"
        "chatpattern"        "kaffir 'CASELESS'"
        "chatpattern"        "kaffer 'CASELESS'"
        "chatpattern"        "kaffre 'CASELESS'"
        "chatpattern"        "kike 'CASELESS'"
        "chatpattern"        "kurva 'CASELESS'"
        "chatpattern"        "kyke 'CASELESS'"
        "chatpattern"        "macaca 'CASELESS'"
        "chatpattern"        "mammy 'CASELESS'"
        "chatpattern"        "neger 'CASELESS'"
        "chatpattern"        "nig jig 'CASELESS'"
        "chatpattern"        "nig-nog 'CASELESS'"
        "chatpattern"        "n1gger 'CASELESS'"
        "chatpattern"        "nigg3r 'CASELESS'"
        "chatpattern"        "nigger 'CASELESS'"
        "chatpattern"        "nigguh 'CASELESS'"
        "chatpattern"        "nigglet 'CASELESS'"
        "chatpattern"        "nikker 'CASELESS'"
        "chatpattern"        "pancake face 'CASELESS'"
        "chatpattern"        "pickaninny 'CASELESS'"
        "chatpattern"        "porch monkey 'CASELESS'"
        "chatpattern"        "quashie 'CASELESS'"
        "chatpattern"        "raghead 'CASELESS'"
        "chatpattern"        "schvartse 'CASELESS'"
        "chatpattern"        "sheeny 'CASELESS'"
        "chatpattern"        "shkutzim 'CASELESS'"
        "chatpattern"        "slant-eye 'CASELESS'"
        "chatpattern"        "slope head 'CASELESS'"
        "chatpattern"        "slopehead 'CASELESS'"
        "chatpattern"        "sooty 'CASELESS'"
        "chatpattern"        "spic 'CASELESS'"
        "chatpattern"        "spick 'CASELESS'"
        "chatpattern"        "spig 'CASELESS'"
        "chatpattern"        "spik 'CASELESS'"
        "chatpattern"        "tar baby 'CASELESS'"
        "chatpattern"        "thicklips 'CASELESS'"
        "chatpattern"        "towel head 'CASELESS'"
        "chatpattern"        "towelhead 'CASELESS'"
        "chatpattern"        "turbanhead 'CASELESS'"
        "chatpattern"        "wetback 'CASELESS'"
        "chatpattern"        "yid 'CASELESS'"
        "chatpattern"        "zigabo 'CASELESS'"
        "chatpattern"        "zwartjoekel 'CASELESS'"
        "warn"                "Racial slurs are againts our rules. You have been warned. 
        "block"                "1"

    }
    "BadWords"
    {
        "chatpattern"        "cock 'CASELESS'"
        "chatpattern"        "twat 'CASELESS'"
        "chatpattern"        "pusse 'CASELESS'"
        "chatpattern"        "pussi 'CASELESS'"
        "chatpattern"        "pussies 'CASELESS'"
        "chatpattern"        "pussy 'CASELESS'"
        "chatpattern"        "l3i+ch 'CASELESS'"
        "chatpattern"        "fag 'CASELESS'"
        "chatpattern"        "homo 'CASELESS'"
        "chatpattern"        "fux0r 'CASELESS'"
        "chatpattern"        "fagot 'CASELESS'"
        "chatpattern"        "doosh 'CASELESS'"
        "chatpattern"        "duche 'CASELESS'"
        "chatpattern"        "cunt 'CASELESS'"
        "chatpattern"        "bitch 'CASELESS'"
        "chatpattern"        "aars 'CASELESS'"
        "chatpattern"        "abortuskind 'CASELESS'"
        "chatpattern"        "addergebroed 'CASELESS'"
        "chatpattern"        "anus 'CASELESS'"
        "chatpattern"        "bef 'CASELESS'"
        "chatpattern"        "eikel 'CASELESS'"
        "chatpattern"        "flikker 'CASELESS'"
        "chatpattern"        "hoer 'CASELESS'"
        "chatpattern"        "kanker 'CASELESS'"
        "chatpattern"        "kenker 'CASELESS'"
        "chatpattern"        "kloot 'CASELESS'"
        "chatpattern"        "kringspiermusketier 'CASELESS'"
        "chatpattern"        "kut 'CASELESS'"
        "chatpattern"        "loeder 'CASELESS'"
        "chatpattern"        "lul 'CASELESS'"
        "chatpattern"        "neuk 'CASELESS'"
        "chatpattern"        "pedo 'CASELESS'"
        "chatpattern"        "reet 'CASELESS'"
        "chatpattern"        "ruft 'CASELESS'"
        "chatpattern"        "scheet 'CASELESS'"
        "chatpattern"        "slet 'CASELESS'"
        "chatpattern"        "teef 'CASELESS'"
        "chatpattern"        "tering 'CASELESS'"
        "chatpattern"        "tyfus 'CASELESS'"
        "warn"                "If you don't have something nice to say don't say it. Read our Rules!"
        "block"                "1"
    }
    "LennyBlock"
    {
        "chatpattern"        "ل 'CASELESS'"
        "chatpattern"        "ʖ 'CASELESS'"
        "warn"                "We consider this usless spam. Stop"
        "block"                "1"
    }    
    "RacistBan"
    {
        "chatpattern"        "cookie 'CASELESS'"
        "replace"            "I'm a Racist and was banned"
        "punish"             "sm_ban #%u 0"
    }
}
__________________
fiala06 is offline
Wilczek
AlliedModders Donor
Join Date: Oct 2012
Location: Poland
Old 07-28-2016 , 11:29   Re: REGEX Word Filter
Reply With Quote #165

Code:
        "warn"                "Racial slurs are againts our rules. You have been warned.
You are missing a quotation mark here.
__________________
Wilczek is offline
fiala06
AlliedModders Donor
Join Date: Mar 2009
Location: Eugene, OR
Old 07-28-2016 , 12:23   Re: REGEX Word Filter
Reply With Quote #166

Quote:
Originally Posted by Wilczek View Post
Code:
        "warn"                "Racial slurs are againts our rules. You have been warned.
You are missing a quotation mark here.
Thanks, made the change and rebooted the server. Bans still don't work.

I even replaced my cfg with the one you posted removing all my additions and it doesn't work either.

Code:
"Censor"
{
    "ExampleLimit"
    {
        "chatpattern"        "test 'CASELESS'"
        "warn"                "Don't swear!"
        "immunity"            "b"
        "replace"            "*****"
        "action"            "sm_slap #%u"
        "limit"                "1"
        "punish"            "sm_ban #%u 10 [Don't swear]"
    }
}  
__________________
fiala06 is offline
Wilczek
AlliedModders Donor
Join Date: Oct 2012
Location: Poland
Old 07-28-2016 , 15:22   Re: REGEX Word Filter
Reply With Quote #167

Any error messages in SM logs?
__________________
Wilczek is offline
fiala06
AlliedModders Donor
Join Date: Mar 2009
Location: Eugene, OR
Old 07-28-2016 , 15:31   Re: REGEX Word Filter
Reply With Quote #168

Quote:
Originally Posted by Wilczek View Post
Any error messages in SM logs?

Nothing :/
__________________
fiala06 is offline
Wilczek
AlliedModders Donor
Join Date: Oct 2012
Location: Poland
Old 07-29-2016 , 00:56   Re: REGEX Word Filter
Reply With Quote #169

Hmm for some reason I was able to ban myself with a regex, but 5 mins later it doesn't work anymore... There must be some bug. If I don't forget, I will look into the code when I'm back from my job.
__________________
Wilczek is offline
fiala06
AlliedModders Donor
Join Date: Mar 2009
Location: Eugene, OR
Old 07-29-2016 , 10:29   Re: REGEX Word Filter
Reply With Quote #170

Quote:
Originally Posted by Wilczek View Post
Hmm for some reason I was able to ban myself with a regex, but 5 mins later it doesn't work anymore... There must be some bug. If I don't forget, I will look into the code when I'm back from my job.
Got further than I did.
Thanks!
__________________
fiala06 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 17:25.


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