Badwords kicker

By The_KiD on Aug 11, 2004

This simple script warns people the first time they say a bad word and kick bans them the 2nd time.

Add words to the list by using /set %badwords blah.blah2.blah3 etc, seperating each word with a period (.)

on @*:text:*:#:{ 
  if ($nick !isop $chan) {
    var %i 1
    while (%i <= $numtok(%badwords,46)) {
      if ($+(*,$gettok(%badwords,%i,46),*) iswm $1-) {
        if (!$read(warned.txt,w,* $+ $address($Nick,2) $+ *)) {
          .notice $nick Swearing is against the rules of $chan - Next time you will be kicked
          write warned.txt $address($Nick,2)
        }
        else {
          ban -u600 $chan $nick 2
          kick $chan $nick 10 minute ban for swearing
        }
      }
      inc %i
    }
  }
}

Comments

Sign in to comment.
blitzz   -  Jun 13, 2009

..

 Respond  
blitzz   -  Jun 13, 2009

on @:text::#:{
if ($nick !isop $chan) {
var %i 1
while (%i <= $numtok(%badwords,46)) {
if ($+(,$gettok(%badwords,%i,46),) iswm $1-) {
if (!$read(warned.txt,w, $+ $address($Nick,2) $+ )) {
.notice $nick Swearing is against the rules of $chan - Next time you will be kicked
write warned.txt $address($Nick,2)
}
else {
ban -u600 $chan $nick 2
kick $chan $nick 10 minute ban for swearing
}
}
inc %i
}
}
}

See this one : " if ($nick !isop $chan) { "

One easy way is just remove it so it will kick the operator too. Ex :

on @:text::#:{
var %i 1
while (%i <= $numtok(%badwords,46)) {
if ($+(,$gettok(%badwords,%i,46),) iswm $1-) {
if (!$read(warned.txt,w, $+ $address($Nick,2) $+ )) {
.notice $nick Swearing is against the rules of $chan - Next time you will be kicked
write warned.txt $address($Nick,2)
}
else {
ban -u600 $chan $nick 2
kick $chan $nick 10 minute ban for swearing
}
}
inc %i
}
}
}

 Respond  
[HANZam]   -  Jun 13, 2009

how about, if an OPERATOR uses any badwords... why is it the script could not kick him/her.. what are the modification of the script could kick an OPERATOR...

more power guys.. thanks

 Respond  
blitzz   -  Jun 13, 2009

Yes. But its up to him which want he want to use. :) Coz not only one way to run it.

Ohh 5 years ago. Didn't realize it. I thought.......

 Respond  
Jethro   -  Jun 13, 2009

You can also use mirc's perform via mirc's options -> Connect and expand -> Options -> Perform tab -> under perform dialog, place

set -e %badwords fark.asshole.pussy.cum.cock

Make sure you've checked 'Enable perform on connect'
Then every time you start your mirc upon connecting, it'll set the variable for you, rather than typing it in manually. Add more foul words if needed for updating the variable.

 Respond  
napa182   -  Jun 13, 2009

@blitzz use BBCode tags

 Respond  
blitzz   -  Jun 13, 2009

Hey napa182 how do you do the yellow box. @_@

 Respond  
blitzz   -  Jun 13, 2009

[HANZam]

I have a question, where do I put the command
/set %badwords blah.blah2.blah3 etc
in the codes?

Actually not put it in the codes.

  1. Press ALT + R and paste the code into the box. Click Ok.
  2. Type /set %badwords fark.ass.hole.pussy.cum.cock in your mirc
  3. Press Enter and done.
 Respond  
napa182   -  Jun 13, 2009

@[HANZam]
just copy/paste in a channel

//set %badwords fark.asshole.pussy.cum.cock

and it will set the var

 Respond  
[HANZam]   -  Jun 13, 2009

I have a question, where do I put the command
/set %badwords blah.blah2.blah3 etc
in the codes?

could u give me an example of the script such as /set %badwords fuck. ass hole.pussy.cum.cock

thanks ahead and godbless...

 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.