Raised This Month: $51 Target: $400
 12% 

REGEX Word Filter


Post New Thread Reply   
 
Thread Tools Display Modes
Pcsl
SourceMod Donor
Join Date: Jun 2013
Old 10-09-2013 , 22:23   Re: REGEX Word Filter
Reply With Quote #101

Quote:
Originally Posted by Jargon View Post
Neither could I that was the problem
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.

Last edited by Pcsl; 10-09-2013 at 22:25.
Pcsl is offline
jpwanabe
Veteran Member
Join Date: Mar 2010
Old 10-17-2013 , 06:31   Re: REGEX Word Filter
Reply With Quote #102

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.
__________________
My Steam TF2APP
My sig changes with each load! Refresh to see my other servers!
jpwanabe is offline
nightrider
SourceMod Donor
Join Date: Dec 2008
Old 10-17-2013 , 13:49   Re: REGEX Word Filter
Reply With Quote #103

Yes you can configure Regex to autoban for chat and it shows in Sourcembans as CONSOLE .
You can view my SourceBans list here
__________________
[SIGPIC][/SIGPIC] the pantless
I am the Night Rider!, I'm a fuel-injected suicide machine.
I am a rocker! I am a roller!, I am an out-of-controller!



Last edited by nightrider; 10-17-2013 at 13:51.
nightrider is offline
Ade
I love purple
Join Date: May 2010
Old 10-20-2013 , 16:25   Re: REGEX Word Filter
Reply With Quote #104

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...
__________________

Last edited by Ade; 10-22-2013 at 16:39.
Ade is offline
Ade
I love purple
Join Date: May 2010
Old 10-25-2013 , 07:53   Re: REGEX Word Filter
Reply With Quote #105

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?
__________________

Last edited by Ade; 10-25-2013 at 07:55.
Ade is offline
Ade
I love purple
Join Date: May 2010
Old 10-26-2013 , 04:00   Re: REGEX Word Filter
Reply With Quote #106

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
__________________

Last edited by Ade; 10-26-2013 at 04:06.
Ade is offline
Ade
I love purple
Join Date: May 2010
Old 10-26-2013 , 13:34   Re: REGEX Word Filter
Reply With Quote #107

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 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?!
__________________

Last edited by Ade; 10-26-2013 at 13:53.
Ade is offline
Ade
I love purple
Join Date: May 2010
Old 10-28-2013 , 15:30   Re: REGEX Word Filter
Reply With Quote #108

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
__________________
Ade is offline
jpwanabe
Veteran Member
Join Date: Mar 2010
Old 10-28-2013 , 15:33   Re: REGEX Word Filter
Reply With Quote #109

Ah, HL2: DM Valve's red headed stepchild.

Quote:
Originally Posted by Twilight Suzuka View Post
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).
__________________
My Steam TF2APP
My sig changes with each load! Refresh to see my other servers!
jpwanabe is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 10-28-2013 , 15:36   Re: REGEX Word Filter
Reply With Quote #110

Configure regexfilter.cfg in the config folder.
Do the same for regexfilter_mapname.cfg
Maxximou5 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 10:41.


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