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

AntiCurse


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-10-2008 , 06:05   AntiCurse
Reply With Quote #1

This is proberly submitted, but here's my version.

Readme:

Quote:
Anti-curse plugin 1.0, made by dutchmeat
This plugin checks if there is any bad words in your text string.
You need a file called 'curse.txt', which has some cursewords defined.
Attached Files
File Type: sma Get Plugin or Get Source (AntiCurse.sma - 810 views - 1.7 KB)
File Type: txt curse.txt (29 Bytes, 246 views)
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
slypanther
BANNED
Join Date: Jan 2008
Old 01-10-2008 , 06:41   Re: AntiCurse
Reply With Quote #2

There is allready one of these out there
Advanced swear Filter
slypanther is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-10-2008 , 08:33   Re: AntiCurse
Reply With Quote #3

Redundant. Unapproved.

On a side note, you should try to be consistent with your tabbing.
__________________
Brad is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-11-2008 , 10:06   Re: AntiCurse
Reply With Quote #4

Ah well, maybe someone can use it...

I didn't pay attention to the indentation because this originally was just a snippet.
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 01-16-2008 , 12:04   Re: AntiCurse
Reply With Quote #5

It's also (sorry) appallingly written.

You get the client's name before you even know if they're swearing ... I mean, come on - how is that not wasteful?

But most importantly you are actually reading the whole file every time someone says anything, rather than using an array of curse words.

Oh, and a "flag" is 1 or 0, true or false - not 0,1,2 or 3 :-P

The other thing might well have been intentional, I don't know ... but you could be kicked just for one "say" containing >3 curse words :-O
purple_pixie 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 09:34.


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