xbox_gamer1 commented on a Page, Simple !afk & back  -  Jun 28, 2011
on *:TEXT:!afk *:#:{
  set %reason $2- | /amsg 9 $nick is away 
  /amsg 4Reason: 4 $+ %reason $+ 9,0 | set %away.time $ctime | enable #away | set %away on
}
on *:TEXT:!back *:#:{
  if ( $nick) {
    /amsg 7 $nick Is back from 4Reason: $+ %reason $+ 9
    /amsg 9 He was away for $duration($calc($ctime - %away.time)) $+ 6. | unset %reason | disable #away | unset %away.time | unset %away on
  }
}

work on your coding

 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.