Top

My 1st Bad Word Kick


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Jul 17, 2009
Last Updated  Jul 17, 2009
Tags  bad  kick  word 

Introduction

Bad Word Kick

Grab the Code

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

  (14)  RSS
Solitude
Comments: 23
 
mIRC Snippet:  My 1st Bad Word Kick
Posted on Jul 18, 2009 12:07 am
Code:

on *:text:*:#: {
  if ($me isop $chan) {
    if ($gettok(fark @#$ 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.
blitzz
Comments: 122
 
mIRC Snippet:  My 1st Bad Word Kick
Posted on Jul 18, 2009 12:30 am
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.

Code:

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


TO

Code:
ban -k $chan $nick 2 No badwords!

Solitude
Comments: 23
 
mIRC Snippet:  My 1st Bad Word Kick
Posted on Jul 18, 2009 1:14 am
$gettok would help, because if you use

Code:
 if (ass isin $1-) {


Wouldn't it pick up on any of those words anywhere? i.e, 'ASSassin'?
Jethro_
Comments: 436
 
mIRC Snippet:  My 1st Bad Word Kick
Posted on Jul 18, 2009 1:58 am
Solitude, using $gettok will trigger the on text event every time, even if words differ from the bad words in the matching range:
Code:
on *:text:*:#:if ($gettok(fark ass sex,$1-,32)) echo -a true
Quote:
<Jethro_> hello
true
<Jethro> hello
true
<Jethro> testing
true
As you can see, it will match whatever. You should use $findtok:
Code:
if ($findtok(fark ass sex,$strip($1-),1,32)) {
blitzz
Comments: 122
 
mIRC Snippet:  My 1st Bad Word Kick
Posted on Jul 18, 2009 2:18 am
Yes. If you use $gettok you actually shots the match word..Any word match you will kick them..
Jethro_
Comments: 436
 
mIRC Snippet:  My 1st Bad Word Kick
Posted on Jul 18, 2009 2:53 am
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:
Code:
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.
blitzz
Comments: 122
 
mIRC Snippet:  My 1st Bad Word Kick
Posted on Jul 18, 2009 3:17 am
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.. :)
Get_A_Fix
Comments: 18
 
mIRC Snippet:  My 1st Bad Word Kick
Posted on Jul 19, 2009 4:00 am
heh, I like to add things to groups, easy to turn on/off

Code:

#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.
buddy
Comments: 30
 
mIRC Snippet:  My 1st Bad Word Kick
Posted on Jul 19, 2009 4:51 am
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.
err0r007
Comments: 14
 
mIRC Snippet:  My 1st Bad Word Kick
Posted on Jul 19, 2009 1:33 pm
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.
Jamiie
Comments: 167
 
mIRC Snippet:  My 1st Bad Word Kick
Posted on Jul 19, 2009 4:34 pm
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
Get_A_Fix
Comments: 18
 
mIRC Snippet:  My 1st Bad Word Kick
Posted on Jul 19, 2009 10:24 pm
lol
buddy
Comments: 30
 
mIRC Snippet:  My 1st Bad Word Kick
Posted on Jul 20, 2009 10:52 pm
huhu
Grant-
Comments: 91
 
mIRC Snippet:  My 1st Bad Word Kick
Posted on Jul 22, 2009 3:05 pm
Code:

on *:text:*:#channel:{
  if ($regex($1-,/(sex|fark|@#$|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)
  }
}

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom