Top

Swear kicker


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  5.5 (of 6 scores)
Date Added  Sep 14, 2007
Last Updated  Sep 14, 2007

Introduction

This snippet comes fully configurable and easy to use. You can edit the words in the snippet itself and edit the number of counts with the %x variable. This checks to see how many times the word is said until the user is banned. The snippet also checks events such as on part and on quit to make sure that the variables for a nick is unset.

Grab the Code

; Swear kicker
; by simplicity  
 
on @*:text:*:#:{ 
  var %swear = shit,fuck
  if ($strip($1-,$gettok(%swear,1-,44))) {
    var %x = 3
    var %y = 1
    inc %swear.num. [ $+ [ $nick ] ] 
    while (%swear.num. [ $+ [ $nick ] ] isnum %y) { 
      msg $chan $+($nick,:) Do not swear in $+($chan,$chr(46)) Any more of this conduct and you will be banned.
      halt
    }
    while (%swear.num. [ $+ [ $nick ] ] iswm %x) {
      unset %swear.num. [ $+ [ $nick ] ]
      ban -k # $nick You have been banned for swearing. 
    }
  }
}   
 
 
on *:part:#:{ 
  if ($gettok(%swear.num. [ $+ [ $nick ] ],1-,44)) { unset %swear.num. [ $+ [ $nick ] ] }
}
 
on *:quit:{ 
  if ($gettok(%swear.num. [ $+ [ $nick ] ],1-,44)) { unset %swear.num. [ $+ [ $nick ] ] }
}

Comments

  (10)  RSS
M[n]M
Comments: 98
 
mIRC Snippet:  Swear kicker
Posted on Sep 14, 2007 5:41 pm
nice job!
simplicity
Comments: 17
 
mIRC Snippet:  Swear kicker
Posted on Sep 14, 2007 5:44 pm
Thank you M[n]M.
dataprofile
Comments: 43
 
mIRC Snippet:  Swear kicker
Posted on Sep 14, 2007 6:16 pm
Gj.
simplicity
Comments: 17
 
mIRC Snippet:  Swear kicker
Posted on Sep 14, 2007 6:20 pm
Thank you dataprofile.
Abbas
Comments: 15
 
mIRC Snippet:  Swear kicker
Posted on Sep 15, 2007 8:43 am
Good Job
cantseeme
Comments: 47
 
mIRC Snippet:  Swear kicker
Posted on Sep 15, 2007 10:04 pm
wat an ereet skript!!1

wtg d0de
simplicity
Comments: 17
 
mIRC Snippet:  Swear kicker
Posted on Sep 15, 2007 10:06 pm
thx d00d3!1!~
SilentExile
Comments: 19
 
mIRC Snippet:  Swear kicker
Posted on Sep 16, 2007 9:28 am
Coding is fairly simple, and there are a couple things that can be improved on. Try making the $nick a $wildsite. What if the nick changed nicks? He could evade your kicker. Make the $strip($1-) an $istok so that it doesn't retrieve the word from another word that has been combined. And you do not need the %y variable. That could be simply a while (%variable <= %x)

What about if you exit? Everything would still be saved. Add an on *:exit event to unset the variables. ( unset %swear.num.* )
a careful warchild
Comments: 243
 
mIRC Snippet:  Swear kicker
Posted on Aug 23, 2008 4:38 am
Good Job, been trying to script one like this actually, thanks for uploading.
a careful warchild
Comments: 243
 
mIRC Snippet:  Swear kicker
Posted on Aug 23, 2008 4:41 am
actually no, this bans people for not even swearing.

Commenting Options

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

  
Bottom