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