autoaway on idle

By Spoofing on Dec 04, 2010

just simple autoaway ;P

on *:INPUT:#:set $+(%,idle,$cid) $ctime | if ($away) away
on *:INPUT:?:set $+(%,idle,$cid) $ctime | if ($away) away
on *:PING: {
  if ($away) return
  if ($calc($ctime - $(,$+(%,idle,$cid))) > 600) {
    away auto-away after $duration($v1,3) idle
  }
}

Comments

Sign in to comment.
Jethro   -  Dec 04, 2010

Deleted due to an overlooked issue.

More
 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.