Raised This Month: $ Target: $400
 0% 

Simple Chat Filter


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Antithasys
Moderator
Join Date: Apr 2008
Plugin ID:
2577
Plugin Version:
1.0.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
19 
Plugin Description:
Uses RegEx to filter chat messages
Old 09-20-2011 , 14:02   Simple Chat Filter
Reply With Quote #1

Simple Chat Filter

Description:
Uses RegEx to filter chat messages.
Console Variables:
scf_filtermsg - Turn ON/OFF the display of the filter message telling the player they said a banned word.
Commands:
sm_reloadscf - Reloads bad words from the config file
Installation:
Place the simple-chatfilter.smx in the /sourcemod/plugins dir.
Place the simple-chatfilter.cfg in the /sourcemod/configs dir.
Changelog:

Quote:
1.0.0
Release
Notes:

This plugin uses the Simple Chat Processor to manipulate chat.

SVN (or Beta Links)

If you want the latest version on the SVN you can use the links below. The release version of the plugin is attached.

Source | Plugin | Config | No Phrases

Enjoy!
Attached Files
File Type: zip Simple Chat Filter.zip (20.0 KB, 3670 views)
__________________
[my plugins]

When you think about asking a question... consider what have you tried?

Last edited by Antithasys; 09-20-2011 at 14:18.
Antithasys is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 09-20-2011 , 14:02   Re: Simple Chat Filter
Reply With Quote #2

Reserved. (Config file instructions coming soon!)
__________________
[my plugins]

When you think about asking a question... consider what have you tried?

Last edited by Antithasys; 09-20-2011 at 14:20.
Antithasys is offline
GoRRageBoy
BANNED
Join Date: Jul 2011
Old 09-23-2011 , 01:49   Re: Simple Chat Filter
Reply With Quote #3

Would it be possible to use/recode this to block players from saying IP addresses, namely IP's of other servers?

I keep getting idiots coming in my server and advertising their server which leads to nearly everyone leaving my server.

It's a huge piss-off for me.
GoRRageBoy is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 09-23-2011 , 14:27   Re: Simple Chat Filter
Reply With Quote #4

Quote:
Originally Posted by GoRRageBoy View Post
Would it be possible to use/recode this to block players from saying IP addresses, namely IP's of other servers?

I keep getting idiots coming in my server and advertising their server which leads to nearly everyone leaving my server.

It's a huge piss-off for me.
It doesn't need to be recoded. It can do that now. Look here for example Regex filters.

http://www.regular-expressions.info/examples.html
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 09-24-2011 , 04:05   Re: Simple Chat Filter
Reply With Quote #5

Quote:
Originally Posted by Antithasys View Post
It doesn't need to be recoded. It can do that now. Look here for example Regex filters.

http://www.regular-expressions.info/examples.html

When I use the above to try and block an IP I get the following message


Code:
Load Errors:
         Simple Chat Filter: Could not find file addons/sourcemod/configs/simple-chatfiler.cfg
Notice the mis-spelling of the file-name of the config file.
__________________
Extreme_One is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 09-24-2011 , 11:57   Re: Simple Chat Filter
Reply With Quote #6

lolz. Was never good at spelling. Will fix it later this weekend.

EDIT:

Fixed on SVN.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?

Last edited by Antithasys; 09-24-2011 at 19:44.
Antithasys is offline
Cockroach
Junior Member
Join Date: Oct 2006
Old 11-18-2011 , 05:31   Re: Simple Chat Filter
Reply With Quote #7

nice plugin.
I got it because I want to ban the word paypal on my trade server.

it works in the normal chat but not in the trade chat(Trade Chat" (1.4) by Luki)

any suggestions or a possible plugin update to get around this?
Cockroach is offline
davidov
Member
Join Date: Oct 2011
Old 01-27-2012 , 11:09   Re: Simple Chat Filter
Reply With Quote #8

Great!
Any future support for punishement and logging?
davidov is offline
markg
Senior Member
Join Date: Jan 2009
Old 08-01-2012 , 17:05   Re: Simple Chat Filter
Reply With Quote #9

tried using this, it loads fine but doesnt work; could be my config file.

one error in the source prevents the reload of the config;
line 111 has a spelling error: simple-chatfiler.cfg vs simple-chatfilter.cfg
so it cant find the config file if you use the reload command (but does on start up)

anyway, the config i am using is pretty short:

//This is just a simple list of banned words.
//There should only be 1 word per line
//The method used is Regex and is caseless
f(?:uc|oo)k
\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
<([A-Z][A-Z0-9]*)\b[^>]*>(.*?)</\1>
\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b

my intent is to block ALL ip addresses and ALL urls. i also threw in a email block just to see if that worked.

i get no errors (except on reload, which is explained by the typo) but can still post ip addresses etc.

any ideas? or did i do the regex filters wrong? i copied them from the regex site.

ps just wanted to say i AM using the Simple Chat Processor (and the Simple Chat Colors plugin also if that matters)

[update] a newer snapshot fixed this, thanks

Last edited by markg; 09-07-2012 at 20:21.
markg is offline
Ade
I love purple
Join Date: May 2010
Old 02-07-2013 , 03:57   Re: Simple Chat Filter
Reply With Quote #10

can someone make a translation file for hl2mp pls?

and if any1 has an extensive regex formula for bad words pls pm
__________________

Last edited by Ade; 02-07-2013 at 05:10.
Ade 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:54.


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