Raised This Month: $151 Target: $400
 37% 

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:
9 
Plugin Description:
Uses RegEx to filter chat messages
Old 09-20-2011 , 15: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, 3103 views)
__________________
[my plugins]

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

Last edited by Antithasys; 09-20-2011 at 15:18.
Antithasys is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 09-20-2011 , 15: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 15:20.
Antithasys is offline
GoRRageBoy
BANNED
Join Date: Jul 2011
Old 09-23-2011 , 02: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 , 15: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 , 05: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 , 12: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 20:44.
Antithasys is offline
Cockroach
Junior Member
Join Date: Oct 2006
Old 11-18-2011 , 06: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
Antithasys
Moderator
Join Date: Apr 2008
Old 11-18-2011 , 17:16   Re: Simple Chat Filter
Reply With Quote #8

This actually works off of translation strings that are processed by the chat processor. If it (the processor) finds the proper translation string then it sends the forward. So this plugin itself would require no updates to work. What would have to happen is the translation string would have to be added to the list, and that is easy to do. The problem is that after reviewing the trade plugin... they use translation strings for everything except the actual message sent to the server. If they updated line 228 in that plugin to use a translation string, then it would all work perfectly.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline
mickael002
Senior Member
Join Date: Jul 2010
Old 12-10-2011 , 10:58   Re: Simple Chat Filter
Reply With Quote #9

Hello,

I really hard to understand your system.

How does one made ​​to ban the words:

Quote:
FDP
Batard
Please

thank you
mickael002 is offline
davidov
Member
Join Date: Oct 2011
Old 01-27-2012 , 12:09   Re: Simple Chat Filter
Reply With Quote #10

Great!
Any future support for punishement and logging?
davidov is offline
Reply


Thread Tools
Display Modes

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:06.


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