Auto-Censor

By cmitch1120 on Dec 01, 2008

This handy little snippet automatically censors out swear words from your text. I only included some more common swear words, I'll be adding a system to add your own soon.

Cheers,
~ Cody

on *:INPUT:*: {
  if (/me == $1) {
    me $replace($1-,shit,****,fuck,****,damn,****,piss,****,cock,****,ass,***,pussy,*****,rape,****,porn,****,sex,***,slut,****,bitch,*****,whore,*****)
    halt
  }
  elseif (/* !iswm $1) {
    say $replace($1-,shit,****,fuck,****,damn,****,piss,****,cock,****,ass,***,pussy,*****,rape,****,porn,****,sex,***,slut,****,bitch,*****,whore,*****)
    halt
  }
  elseif (/* iswm $1) {
    $$1 $replace($2-,shit,****,fuck,****,damn,****,piss,****,cock,****,ass,***,pussy,*****,rape,****,porn,****,sex,***,slut,****,bitch,*****,whore,*****)
    halt
  }
  else { return }
}

Comments

Sign in to comment.
Acclamator   -  Jan 02, 2009

This script has already been made in a more efficient way, but good job. >.> mines better >.>

 Respond  
Jonesy44   -  Jan 01, 2009

oh lol! my bro took me into a stripjoint at 11. im sure you were a better one XD

 Respond  
cmitch1120   -  Jan 01, 2009

Thanks for the comments everyone.
@mountaindew: I would use $regsubex, but I've not a clue how it works.
@Jonsey44: Umm... since I was raised not to speak that way around my younger brothers. :D

~Cody Out.

 Respond  
cmitch1120   -  Jan 01, 2009

Thanks for the comments all, mountaindew, I would include that, but I've no idea how to use $regsubex... LOL!

 Respond  
xplo   -  Dec 02, 2008

Pfwaa!!!

 Respond  
napa182   -  Dec 02, 2008

lol naw i would have done

$regsubex($1-,/(fuck|shit|bitch|cunt|ass|slut|whore|pussy|cock)/gi,$+($chr(3),4,[Censored],$chr(3)))

to make it abit funny ;x

 Respond  
xplo   -  Dec 01, 2008

you just did a napa on this script mountaindew :p

 Respond  
guest598594   -  Dec 01, 2008
$regsubex($1-,/(fuck|shit|ass(?:hole)?|bitch|cock|pussy)/ig,$str(*,$len(\1)))
 Respond  
Jonesy44   -  Dec 01, 2008

s'actly.

 Respond  
Dark_Aaron   -  Dec 01, 2008

jonesy44: idk

 Respond  
Jonesy44   -  Dec 01, 2008

Since when was pussy a swear? or sex..

 Respond  
zonirc   -  Dec 01, 2008

I think this code can be useful in a strict channel(especially when their op's have a disturbing anti swear scripts). Sometimes the normal user had typed without knowing the words can make they be banned so this script can preventing them....

 Respond  
TheWhistler   -  Dec 01, 2008

why censor your own swear words, dont make sense to do that, easy just not to type any swearwords, make it so it will censor other ppl's swearwords

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.