My 1st Bad Word Kick

By buddy on Jul 17, 2009

Bad Word Kick

on *:text:*:#channel: {
  if (sex iswm $1-) || (fuck iswm $1-) || (cunt iswm $1-) || (ass iswm $1-) {
    inc %x 1
    kick $chan $nick No bad word here - No - %x | mode $chan +b $wildsite
    msg $nick Blacklist Word from me 4Sex , Cunt , Fuck , Asshole 
  }
}

Comments

Sign in to comment.
Grant-   -  Jul 22, 2009
on *:text:*:#channel:{
  if ($regex($1-,/(sex|fuck|cunt|ass)/Si)) {
    inc %badwordcounter
    mode # +b-Q $wildsite | kick # $nick No bad words here - %badwordcounter
    msg $nick Blacklist Word from me for saying4 $regml(1)
  }
}
 Respond  
buddy   -  Jul 20, 2009

huhu

 Respond  
Get_A_Fix   -  Jul 19, 2009

lol

 Respond  
Jamiie   -  Jul 19, 2009

I'm sure writing all the badwords to a .txt file, and letting the script read from it to identify the badwords. Also adding an alias to add/remove badwords would be essential.

I would write it, but today I'm too lazy. :P

 Respond  
err0r007   -  Jul 19, 2009

buddy all those are explained in the mIRC help file. /help in mirc as long as you have the help files. You can look up isop, isvoice, *tok, etc.

 Respond  
buddy   -  Jul 19, 2009

may i ask wht is ($me isop $chan) { $nick isvoice $cahn and $nick isreg $chan ????
and the var, and the wrd that have tok tok at the end ??? Sory for asking, some of the codes make me confuse.

 Respond  
Get_A_Fix   -  Jul 19, 2009

heh, I like to add things to groups, easy to turn on/off

#swear.prot off
on @*:TEXT:*:#: {
  if ($nick isreg $chan) {
    var %i = 0
    while (%i < $numtok(%swear.words,32)) {
      inc %i
      var %current.word = $gettok(%swear.words,%i,32)
      if ($istok($strip($1-),%current.word,32) == $true) {
        ban -ku300 # $nick 2 Swear Word Detected.
      }
    }
  }
}
#swear.prot end

menu channel {
  -
  Swear Protection.
  .On://.enable #swear.prot | echo 4 -at * Your Current Set Swear Words are: %swear.words
  .Off://.disable #swear.prot | echo 4 -at * Disabled Swear Protection. 
  .Set Swear Words://unset %swear.words | set %swear.words $$?="Enter Swear Words - Reset ALL Again (with spaces)"
  .-
}

Similar method to others posted here, basic channel menu included.

 Respond  
blitzz   -  Jul 18, 2009

Yes Jethro_ ..I actually reply to Solitude..and i agree wif u using $findtok..I just explain to him that using $gettok will matches all word that the op set even the person type Assasin, Assrafh etc.. :)

 Respond  
Jethro   -  Jul 18, 2009

Have you tried using $gettok as solitude posted? It matches anything, even if it's not a bad word. I think an alternative should be:

on @*:TEXT:*:#: {
  var %x = 1, %y = ass fark sex
  while ($numtok(%y,32) >= %x) {
    if ($wildtok($strip($1-),$gettok(%y,%x,32),0,32)) {
      ban -k $chan $nick 2 No badwords!
    }
    inc %x
  }
}

Actually using $findtok will match exactly the bad words themselves only, so $wildtok is necessary for the script to catch them in a sentence.

 Respond  
blitzz   -  Jul 18, 2009

Yes. If you use $gettok you actually shots the match word..Any word match you will kick them..

 Respond  
Jethro   -  Jul 18, 2009

Solitude, using $gettok will trigger the on text event every time, even if words differ from the bad words in the matching range:

on *:text:*:#:if ($gettok(fark ass sex,$1-,32)) echo -a true
hello true hello true testing trueAs you can see, it will match whatever. You should use $findtok:
if ($findtok(fark ass sex,$strip($1-),1,32)) {
 Respond  
Solitude   -  Jul 18, 2009

$gettok would help, because if you use

 if (ass isin $1-) {

Wouldn't it pick up on any of those words anywhere? i.e, 'ASSassin'?

 Respond  
blitzz   -  Jul 18, 2009

Also add if $nick isop $chan and $nick isvoice $chan so it will not disturbing people when chatting.

I think no need to use gettok etc but there are many ways to create it. So no comment for that.

MODE $chan +b $nick
KICK $chan $nick No badwords!

TO

ban -k $chan $nick 2 No badwords!
 Respond  
Solitude   -  Jul 18, 2009
on *:text:*:#: {
  if ($me isop $chan) {
    if ($gettok(fuck cunt ass sex,$1-,32)) {
      MODE $chan +b $nick
      KICK $chan $nick No badwords!
    }
  }
}

Obviously replace the censored words above with whatever cuss words you want, lol.

 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.