Jethro commented on a Page, Idle kicker  -  Jan 10, 2012

Why set a bunch of timers when you can do it with one identifier and one timer? You may not need any timer at all if you do it via an on ping event. Here is what I meant:

on *:ping:{
  var %i = 1, %c
  while ($comchan($me,%i)) {
    if ($me isop $v1) {
      %c = $v2
      tokenize 32 $regsubex($str($chr(32),$nick(%c,0,r)),//g,$&
        $iif($nick(%c,\n,r).idle >= 30,$iif($nick(%c,\n,r) != $me,$v1)))
      kick %c $* Please don't idle here.
    }
    inc %i
  }
}
 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.