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)

Pcsl 10-09-2013 22:23

Re: REGEX Word Filter
 
Quote:

Originally Posted by Jargon (Post 2046521)
Neither could I that was the problem :P

Code:

    "AllCaps"
    {
        "chatpattern"    "[A-Z][A-Z][A-Z]"
        "warn"    "Please don't shout, it's rude."
        "limit"    "5"
        "punish"    "sm_gag #%u [Caps spam limit exceeded]"
    }

That should do the trick but I'm not using it if console/say map messages are being blocked too.

jpwanabe 10-17-2013 06:31

Re: REGEX Word Filter
 
I never got my question answered. Will this work with sourcebans? I want to auto ban people who come in with that stupid LAMOBOX thing.

nightrider 10-17-2013 13:49

Re: REGEX Word Filter
 
Yes you can configure Regex to autoban for chat and it shows in Sourcembans as CONSOLE .
You can view my SourceBans list here

Ade 10-20-2013 16:25

Re: REGEX Word Filter
 
Quote:

L 10/20/2013 - 22:23:18: [SM] Failed to load plugin "sm_regexfilter.smx": .
Quote:

[sm_regexfilter.smx] REGEXFilter has no file to filter based on. Powering down...

Ade 10-25-2013 07:53

Re: REGEX Word Filter
 
Quote:

Note:
map based regex file, of the format "regexfilter_MAPNAME.cfg"
u mean regexrestrict_MAPNAME.cfg?

so maybe the problem is only my cfg, because it's called by default regexrestrict.cfg and should be something like regexrestrict_.cfg to cover all maps?

EDIT: also, if i dl both the smx and the source, they are different, which is the right one?

Ade 10-26-2013 04:00

Re: REGEX Word Filter
 
Quote:

[SM] Failed to load plugin "sm_regexfilter.smx": €.
Quote:

[sm_regexfilter.smx] REGEXFilter has no file to filter based on. Powering down...
ok look at your post, u have 3 attached files, right? i think that's what it does when u don't attach an sp ONLY, mb happened to me too, it adds it as a simple smx file and then the sp one has: get plugin or get source line, but i downloaded both from the smx option and the get plugin option and they're different..

anyway I tried ur smx and the new cfg u uploaded and it's the same, but i asked what this regexrestrict_mapname.cfg format means, instead u changed the name of ur cfg from regexrestrict_de_dust.cfg to a simple regexrestrict.cfg that i initially had (from thread's main post), sooo confuzzled

Ade 10-26-2013 13:34

Re: REGEX Word Filter
 
well that explains it... i have 10 plugins that put the cfg in /gamedir/cfg/sourcemod, out of which 1 has additional cfgs in /gamedir/addons/sourcemod/configs! so i assumed it would go in the other place, turns out na-ah

thx, i see it loaded now, time to play with regex

EDIT: quick question, is this map based or session based?
EDIT2: aaaand doesn't seem to work if i use console to type stuff in chat :D aaaaaaand it kicks even if i put limit higher than 1 :(

aaand this lol
Quote:

[sm_regexfilter.smx] configs/regexrestrict_dm_lockdown.cfg not parsed...file doesnt exist!
basically when i have it simple, it gives that msg, when i name it regexrestrict_.cfg, to match ALL maps, it gives "[sm_regexfilter.smx] configs/regexrestrict.cfg not parsed...file doesnt exist!"
and when i name it regesrestrict_dm_lockdown.cfg, it gives this.. "[sm_regexfilter.smx] REGEXFilter has no file to filter based on. Powering down..."

how the fuck am i supposed to fkn name it?!

Ade 10-28-2013 15:30

Re: REGEX Word Filter
 
the fact that you uploaded it under the name of regexrestrict.cfg, then specify that I should use sm_regexfilter.cfg, but quote the OP saying it should be regexfilter_mapname.cfg, is all very helpful (and makes me wonder if it's loaded even for u)

in addition to the names I've mentioned trying in a previous post, today I tried regexfilter.cfg, regexfilter_.cfg, regexfilter_dm_lockdown.cfg, sm_regexfilter.cfg, sm_regexfilter_dm_lockdown.cfg, and compared to last time when I had at least 2 different log messages, now it's the same old, leading me to believe this is even MORE wrong, if possible

can't any admin of the apparently 1257 servers running this plugin guide me in the right direction? how am I supposed to name it to suit all maps, various prefixes, for eg: a2k_trainzzz, aim_arena_reloaded, dm_lockdown

jpwanabe 10-28-2013 15:33

Re: REGEX Word Filter
 
Ah, HL2: DM Valve's red headed stepchild.

Quote:

Originally Posted by Twilight Suzuka (Post 630204)
Edit: Altered slightly; will now accept a map based regex file, of the format "regexfilter_MAPNAME.cfg", and will power off if no regex filter files are found (for efficiency reasons).


Maxximou5 10-28-2013 15:36

Re: REGEX Word Filter
 
Configure regexfilter.cfg in the config folder.
Do the same for regexfilter_mapname.cfg


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

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