Kicker Control Snippet

By Aeonex on Apr 16, 2010

This script will send notices to anyone who abuses their kick powers if they have kicked someone and they aren't on the specified authorized list ($istok list). Simply plugin the nicks you want authorized to kick, otherwise they will receive 3 warnings before being banned for 10 minutes. You may also change which channel this will work on, you must be an Op or higher in the channel in order for the script to work.

Thanks to Napa182 for writing the majority of this script.

on @*:kick:#:{
  if (!$istok(nick1 nick2 nick3,$nick,32)) {
    hinc -m w $wildsite 1
    if ($hget(w,$wildsite) <= 3) { .notice $nick $replace($v1,1,First,2,Second,3,Last) Warning, don't $&
      kick other nicks. $iif($v1 = 3,You aren't authorized to do it.) }
    else { ban -ku600 # $nick 2 banned for 10 minutes | hdel w $wildsite }
  }
}

Comments

Sign in to comment.
napa182   -  Apr 19, 2010

at keeping it at what you have....

on @*:kick:#:{
  if (!$istok(nick1 nick2 nick3,$nick,32)) {
    hinc -m w $wildsite 1
    if ($hget(w,$wildsite) <= 3) { .notice $nick $replace($v1,1,First,2,Second,3,Last) Warning, don't $&
      kick other nicks. $iif($v1 = 3,You aren't authorized to do it.) }
    else { ban -ku600 # $nick 2 banned for 10 minutes | hdel w $wildsite }
  }
}
 Respond  
Aeonex   -  Apr 19, 2010

Wonderful. I would love to use these scripts, except that none of them work. Thank you for the suggestion on hash tables however. They seem simple enough to use and then I'll just use a /debug @rawmode window to find out all of the appropriate identifiers. So I appreciate your advice.

 Respond  
WorldDMT   -  Apr 17, 2010

or he can make a level user i told it befor

menu nicklist {
  .Add $1 :auser -a prot $address($1,2)
  .Remove $1 :ruser prot $address($1,2)
}

then the event will be like this

on @*:KICK:#:{ 
   if !$istok($remove($level($wildsite),=),prot,44)
 Respond  
Jethro   -  Apr 16, 2010

if !$istok(Hazumu-chan Aeonex K-Shadow Azurik Outcode fullmoon|tentailwolf Naruto755 Eruza Shadiko,$nick,32) {mmm...lol You should make it nick1 nick2 nick3 etc...since you've submitted this script as a public open source code now. Or you could make a little menu for people to add nicks via popups like this:

menu * {
  Add a Name to Exempt {
    set %e $addtok(%e,$$?="Enter a Name You Wish to Exclude from Being Kicked:",32)
    echo 4 -a * $! has been added successfully to the kick exemption!
  }
}

Then change that $istok condition to this:

if !$istok(%e,$nick,32) {
 Respond  
WorldDMT   -  Apr 16, 2010

lol

 Respond  
Jethro   -  Apr 16, 2010

Nicely done, WorldDMT, I'm sure you're gonna make Aeonex feel owned.

I'm, of course, kidding. :p

 Respond  
WorldDMT   -  Apr 16, 2010

hi
make a level list instead of the $istok condition and check if u are OP in chan
write $nick kickerlist.txt
/help /write
the command is /write file text
"write -sd$nick kickerlist.txt" isnt -sd $+ $nick ??
u can use $iif & tokenize to avoid repetition and hash tables
and about the ban better to use $wildsite instead of $nick
dont use "isin" for this case that is a bad idea

on @*:KICK:#:{
  if !$istok(Hazumu-chan Aeonex K-Shadow Azurik Outcode fullmoon|tentailwolf Naruto755 Eruza Shadiko,$nick,32) {
    if $hget(w,$wildsite) == 4 {
      ban # -ku600 $nick 2 banned for 10 min.
      hdel w $wildsite
    }
    elseif $hget(w,$wildsite) {
      echo # $nick $v1
      hinc w $wildsite
      notice $nick $replace($v1,2,Second,3,Last) Warning, don't kick other nicks. $iif($v1 = 3,You aren't authorized to do it.)
    }
    else {
      hinc -m w $wildsite
      notice $nick First Warning, don't kick other nicks.
      hinc w $wildsite
    }
  }
}
 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.