Raised This Month: $ Target: $400
 0% 

Auto swear gag


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-22-2012 , 10:38   Re: Auto swear gag
Reply With Quote #91

Quote:
Originally Posted by Ejziponken View Post
Thx.

But they still show in log.

Player: krEJZI <STEAM_0:0:1328206>
Time: 16:29:58
Message: "timeleft"
Contained string: "timeleft"

They will take upp much space and makes it harder to read the log when we are searching for words that should not be blocked. So if you could fix that, it would be good too.
That was done intentionally. Anyway, it's been changed so they aren't logged.

Also, you should probably use a pattern instead of string since if someone says "just type timeleft to see how much time is left" then their message will be hidden.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 02-22-2012 , 11:11   Re: Auto swear gag
Reply With Quote #92

Quote:
Originally Posted by Exolent[jNr] View Post
That was done intentionally. Anyway, it's been changed so they aren't logged.

Also, you should probably use a pattern instead of string since if someone says "just type timeleft to see how much time is left" then their message will be hidden.
Yeah, I noticed that.

Hm, running out of suggestions now (guess thats good)..
Maybe a cvar for logging on/off. In the future we probably want to turn it off when we know that the filters are good.
Ejziponken is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-22-2012 , 13:17   Re: Auto swear gag
Reply With Quote #93

Quote:
Originally Posted by Ejziponken View Post
Maybe a cvar for logging on/off. In the future we probably want to turn it off when we know that the filters are good.
Added, and also added swear_filter_hide_hard cvar.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 02-23-2012 , 09:38   Re: Auto swear gag
Reply With Quote #94

Thx. Seems to be working and I still dont have any more suggestion regarding this plugin. This is one of the best plugins ever made, so again thx for your time.
Ejziponken is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 02-24-2012 , 08:28   Re: Auto swear gag
Reply With Quote #95

I actually have one more question.

The filters:
"regex" "^(.*[^a-z]*[zs25§$]+[^a-z]*[t7]+[^a-z]*[f]+[^a-z]*[uy]+.*)$" "0"

"regex" "^(.*[^a-z]*[zs25§$]+[^a-z]*[k]+[^a-z]*[a4e3@]+[^a-z]*[n]+[^a-z]*[k]+.*)$" "0"


The whitelist:
/just fyi/

This will not block:
Just fyi you are a skank

I want it to allow this:
Just fyi you are .*

But not:
Just fyi you are a skank .*

Now it basicly allows any filtered words if you put a whitelist word in there somewhere.

Last edited by Ejziponken; 02-24-2012 at 08:42.
Ejziponken is offline
kakanftw
Junior Member
Join Date: Dec 2008
Old 02-24-2012 , 14:50   Re: Auto swear gag
Reply With Quote #96

in other words, you still wanna block blacklisted words, even if a whitelisted is in the sentence? or vice versa..

Last edited by kakanftw; 02-24-2012 at 14:50.
kakanftw is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 02-26-2012 , 07:47   Re: Auto swear gag
Reply With Quote #97

Quote:
Originally Posted by kakanftw View Post
in other words, you still wanna block blacklisted words, even if a whitelisted is in the sentence? or vice versa..
Yes..

Lets say that I have "fuck", "stfu" and "neger" in the FILTER. Then in the whitelist i have "negerbollar".
If you write "Today i baked negerbollar" <- that would show in chat becuse of the whitefilter.
BUT the problem is that if you write "Today i baked fucking negerbollar so stfu fucking noob" that would also show becuse "negerbollar" is in the whitelist... :E

So bascily you can add "negerbollar" to everything u write and it would show.
Like this: Fuck you fucking nigger ass. (negerbollar) :E

So the plugin should block the chat if there is a filtered word that isnt whitelisted even if a another word does have whitefilter.

Edit: One more thing.

Cvar for the logfilenames. I want unique filenames for the logfiles so I can symlink the files to one map.

Example:
server1.2012-02-26.log
server2.2012-02-26.log

Last edited by Ejziponken; 02-27-2012 at 16:48.
Ejziponken is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 03-01-2012 , 15:40   Re: Auto swear gag
Reply With Quote #98

This plugin makes the server FPS to drop. The mean fps went from 850 to 500.

Last edited by Ejziponken; 03-01-2012 at 15:41.
Ejziponken is offline
Schpraaankiii
Veteran Member
Join Date: Dec 2009
Location: Sweden Norrköping
Old 03-02-2012 , 19:33   Re: Auto swear gag
Reply With Quote #99

Can someone make a program that generates this regex shit?! You just put in the words that you want to block and the program generate a regex line with any possible way of blocking that word.
I don't understand anything when I try to block words with regex :S
Or if someone could make or link a tutorial for dummies. I really need help!
__________________
CAOSK-ESPORTS.COM

Last edited by Schpraaankiii; 03-03-2012 at 20:16.
Schpraaankiii is offline
Send a message via Skype™ to Schpraaankiii
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 03-21-2012 , 05:20   Re: Auto swear gag
Reply With Quote #100

Still need at fix for the whitefilter if possible.

Lets say that I have "fuck", "stfu" and "neger" in the FILTER. Then in the whitelist i have "negerbollar".
If you write "Today i baked negerbollar" <- that would show in chat becuse of the whitefilter.
BUT the problem is that if you write "Today i baked fucking negerbollar so stfu fucking noob" that would also show becuse "negerbollar" is in the whitelist... :E

So bascily you can add "negerbollar" to everything u write and it would show.
Like this: Fuck you fucking nigger ass. (negerbollar) :E

So the plugin should block the chat if there is a filtered word that isnt whitelisted even if a another word does have whitefilter.
Ejziponken 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 07:18.


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