AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   AntiCurse (https://forums.alliedmods.net/showthread.php?t=65514)

dutchmeat 01-10-2008 06:05

AntiCurse
 
2 Attachment(s)
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.

slypanther 01-10-2008 06:41

Re: AntiCurse
 
There is allready one of these out there
Advanced swear Filter :)

Brad 01-10-2008 08:33

Re: AntiCurse
 
Redundant. Unapproved.

On a side note, you should try to be consistent with your tabbing.

dutchmeat 01-11-2008 10:06

Re: AntiCurse
 
Ah well, maybe someone can use it...

I didn't pay attention to the indentation because this originally was just a snippet.

purple_pixie 01-16-2008 12:04

Re: AntiCurse
 
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


All times are GMT -4. The time now is 14:16.

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