help me the kick not working
on *:TEXT:!idle*:#uno: {
if ($2 == $null) {
/msg $chan you must supply a nickname and optionally a channel.
}
else {
if ($3 == $null) {
if ($2 ison $chan) {
/msg $chan $2 has been idle on $chan for $getnickidle($2,$chan) $+ .
}
else {
/msg $chan $2 is not on $chan $+ .
}
}
elseif ($me ison $3) {
if ($2 ison $3) {
/msg $chan $2 has been idle on $3 for $getnickidle($2,$3) $+ .
}
else {
/msg $chan $2 is not on $3
}
}
else {
/msg $chan I am not on $3 $+ .
}
}
else {
if ($nick($chan,$1).idle > %idletime) { kick $chan $2 You have been idle too long!
}
}
}
alias getnickidle {
/var %x 0
:getnickidleloop
/inc %x
if (%x == $nick($2,$1)) {
/return $duration($nick($2,%x).idle)
}
else {
if (%x < $nick($2,$1)) {
goto getnickidleloop
}
else {
return error
}
}
}