Bad words blocking!

By mysterycool on Apr 13, 2007

Ok this is a script that converts bad words to censored. Just copy this into your remotes (Alt+R). If you wanna block more words just edit it!

on ^*:text:*:#: {
  if (shit isin $1-) || (bollocks isin $1-) || (fucking isin $1-) || (fuck isin $1-) || (crap isin $1-) || (twat isin $1-) || (cunt isin $1-) || (bitch isin $1-) ||  (motherfucker isin $1-) || (wanker isin $1-) || (pussy isin $1-) || (dick isin $1-) || (dickhead isin $1-) || (ass isin $1-) || (asshole isin $1-) || (gay isin $1-) || (lebian isin $1-) || (lezbo isin $1-) || (lesbo isin $1-) {
    .echo $chan < $+ $nick $+ > $replace($1-,shit,<censored>,bollocks,<censored>,fucking,<censored>,fuck,<censored>,crap,<censored>,twat,<censored>,cunt,<censored>,bitch,<censored>,motherfucker,<censored>,wanker,<censored>,pussy,<censored>,dick,<censored>,dickhead,<censored>,ass,<censored>,asshole,<censored>,gay,<censored>,lesbian,<censored>,lezbo,<censored>,lesbo,<censored>)
    haltdef
  }
}

Comments

Sign in to comment.
peterpowell   -  Apr 16, 2007

a dialog for adding/modding/deleting would be good.. perhaps storing the words and their replacements in some kind of table?

-pp

 Respond  
xDaeMoN   -  Apr 16, 2007

Then make it easier for the user to edit/add/delete bad words. If you\'re making a script to be used by others, then make it user friendly. Just a friendly reminder to enhance your script/snippet. :)

 Respond  
mysterycool   -  Apr 14, 2007

nah... I prefer it like this... I mean... If somebody thinks of more words that he/she wants to put, he/she can easily put them! I mean, I couldn\'t write all the bad words of the world!

 Respond  
Lindrian   -  Apr 14, 2007

or, if u dont know how to use regex, use tokens?
if ($istok(word,%var,32)) {

 Respond  
S*A*U*R*A*B*H   -  Apr 14, 2007

Not Bad ^^

 Respond  
mysterycool   -  Apr 14, 2007

...

 Respond  
Lindrian   -  Apr 14, 2007

You should try using regex for this :P

 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.