[CENSORED]

By xDaeMoN on Apr 13, 2005

A simple script that replaces the swear words that you specify with [CENSORED]. Works with channel or private messages. Replace "put,your,swear,words,here" with your swear words separated by a comma. Copy/Paste to your remotes section (ALT-R -> FILE -> NEW)

;=====================
; [CENSORED]
; Version 1.0 
; Written by: xDaeMoN
; Email: xdaemon@xdaemon.us
;
;=====================

on ^*:TEXT:*:*: {
  var %t = 1, %text = $strip($1-), %swears = put,your,swear,words,here
  while $gettok(%swears,%t,44) { 
    if ($v1 isin %text) %text = $replace(%text,$v1,4[CENSORED])
    inc %t
  }
  if ([CENSORED] isin %text) { 
    echo -tbf $iif($chan,$v1,$nick) $+(<,$nick,>) %text
    haltdef
  }
} 

Comments

Sign in to comment.
xDaeMoN   -  Oct 04, 2007

Not really. I didn\'t even realize at the time that David_James posted one.

 Respond  
Sick_Puppy   -  Oct 04, 2007

Did you make this to show up David_James\' awful one that didnt work?
xD

 Respond  
xDaeMoN   -  May 21, 2006

The scripts works, but this is only locally. Just for the person who has the script, not for the channel. I know some servers has some type of mode to block/censor bad words.

 Respond  
DreamLander   -  May 21, 2006

Ok, I tried very many scripts for censoring badwords, but none of them has the desired effect.
When user posts a badword I want the script to censor the bad word before the word appears on the channel,and the script must intercept and replace it with a censor message(\"[Censored]\").

The effect of the actual script:

fuck <- the word appears( and the censor is not working 100% ) [Censored] The desired effect, I want , would be like this: [Censored] <- The word was intercepted by the script and censored directly and the badword didn\'t appear. My thought is that it couldn\'t be making this kind of script, because there is no possibility to intercept(scans) the words before appearing in the channel. If someone could make this kind of script, it would be a great accomplish.Or can someone tell me the solutions for this kind of job?
 Respond  
xDaeMoN   -  Apr 15, 2005
chaplja   -  Apr 15, 2005

Mh.. Soz, my english is not perfect, you didnt understand me.. When I did it, i get two lines again - one non-censored and one with only [CENSORED] .. What I was looking for is only ONE line - with words replaced by CENSORED

 Respond  
xDaeMoN   -  Apr 15, 2005

Yes. Replace this part \"$replace(%text,$v1,4[CENSORED])\" to \"4[CENSORED])\" then remove the \"$+(<,$nick,>)\" in the echo command.

 Respond  
chaplja   -  Apr 15, 2005

But is there any way to make it censored 100 % ? What I\'m getting is for example (nick) FUCK and right after that echo-ed (nick) [CENSORED] .. I\'d like it to show only 1 line which is censored

 Respond  
Relinsquish   -  Apr 14, 2005

Nevermind, I just realized I was querying myself. :)

 Respond  
xDaeMoN   -  Apr 14, 2005

Yup, it is. Just tried it again and still returns my nick as the target. I also thought about the $reptok before but some people add other characters with the specified swear word so it won\'t be replaced.

 Respond  
Relinsquish   -  Apr 14, 2005

Strange. $target returned the person\'s nickname when I tried it.

 Respond  
xDaeMoN   -  Apr 14, 2005

I tried $target but when it comes to pm, the target is you and not the person who sent the message.

 Respond  
Relinsquish   -  Apr 14, 2005

It\'s a good idea but I\'d rather use $reptok instead of $replace. The $iif($chan,$v1,$nick) can also be changed to $target.

 Respond  
DarthReven   -  Apr 13, 2005

i like the idea but i\'m not big on the variable

 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.