Ooops, sorry. I'm not sure what the best event to stick a timer in would be perhaps On Join and check idled nicks every 10 minutes?

Code:
on 1:Join:#: {
  if ($timer(idlechk)) { 
    return
  }
  else {
    .timeridlechk 0 600 check.idle
  }
}