Code:
on *:CONNECT: {
timer(autoaway) 0 10 aaway
}

 alias aaway {
  if ($idle > %aatime) {
    setaway autoaway after $calc(%aatime / 60) mins
    .timer(autoaway) off
  }
}
 


well, there seemes to be a problem:
[01:35:24] [@piko-away] back: autoaway after 30 mins ø duration: 4mins 27secs
* Timer (autoaway) activated
-
[01:35:34] [@piko] away: autoaway after 30 mins ø went of at: 01:35:34
* Timer (autoaway) halted

what i need to do is to reset $idle, right? but, how? smile

Last edited by piko; 06/01/03 12:47 AM.