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 }
}
}
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 }
}
}
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) {
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
}
}
}