Code:
on @*:join:#help:{
  $+(.timer,$nick) 0 30 idlecheck $nick $chan
}
alias idlecheck {
 [color:#FF6666] if ($1 !isreg $2) { $+(.timer,$nick) off }[/color]  if ($nick($2,$1).idle > 300) {
    ban -u900 $2 $1 2 | sapart $1 $2
    $+(.timer,$nick) off
  }
}


I inserted that new line above already, however, it makes no difference from the old one.

What I want here is that, a code to kick idle user on my channel (i.e. #myroom) and make sure that this code doesn't affect channel ops and voices (it will kick normal idle users only, ops (+o) and voices (+o) are not kicked).

What do you mean by this: if ($1 !isreg $2) ?

Last edited by mrsilent; 11/04/08 06:13 PM.