Top

Swear Kicker (Curse Kicker)


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  4.3 (of 4 scores)
Date Added  Sep 29, 2008
Last Updated  Sep 30, 2008
Tags  bad  curse  kicks  swears 

Introduction

Works for mirc 6.1 or above

;Swear Kicker(Curse Kicker)

/swear -a <word> - to add <word> to the list of swear words.
/swear -d <word> - to remove <word> from the list of swear words.
/swear -c - to clear the list of swear words.

Grab the Code

alias swear {
  if !$isid {
    if $1 == -a { set %swear.list $addtok(%swear.list,$2,32) }
    elseif $1 == -d { set %swear.list $deltok(%swear.list,$findtok(%swear.list,$2,1,32),32) }
    elseif $1 == -c { unset %swear.list }
  }
  else { return %swear.list }
}
on *:text:*:#:{
  if $istok($swear,$1-,32) { kick $chan $nick no swearing thanks. }
}

Comments

  (7)  RSS
napa182
Comments: 1,455
 
mIRC Snippet:  Swear Kicker (Curse Kicker)
Posted on Sep 29, 2008 3:44 pm
well it only triggers if the bad word is the only word said...
and you dont need the ! on ur text even cuz you cant set off ur on text events
mountaindew
Comments: 1,826
 
mIRC Snippet:  Swear Kicker (Curse Kicker)
Posted on Sep 29, 2008 3:53 pm
Use a loop:
Code:

var %x = 1
while $gettok(%swear.list,%x,32) {
  if ($istok($1-,$v1,32)) kick $chan $nick no swearing
  else inc %x
}
TwistedHumor
Comments: 20
 
mIRC Snippet:  Swear Kicker (Curse Kicker)
Posted on Sep 29, 2008 4:06 pm
Thanx for your comments...
Didn't realize the ! was there.
Yes you can use a loop if you want.
Gotta keep some coding simple for others.
Imrac
Comments: 21
 
mIRC Snippet:  Swear Kicker (Curse Kicker)
Posted on Sep 29, 2008 7:07 pm
You can use the chr 161 for a addtok and then if ($regex($1-,$+(\b(,%swearlist,)\b))) { do w/e you want do it }
Bullet_Dodger
Comments: 310
 
mIRC Snippet:  Swear Kicker (Curse Kicker)
Posted on Sep 30, 2008 10:21 am
Good Script
{{6/10}}
~Sonny
Comments: 46
 
mIRC Snippet:  Swear Kicker (Curse Kicker)
Posted on Oct 2, 2008 6:00 pm
ROFL @ dodger.
miniCruzer
Comments: 47
 
mIRC Snippet:  Swear Kicker (Curse Kicker)
Posted on Aug 19, 2009 3:50 pm
I like it. I'd add a ban after they are kicked x amount of times

Commenting Options

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

  
Bottom