Simple away snippet

By rvalentine3838 on Jul 26, 2013

simple enough to get

alias afk { 
  set %away $me
  set %here $1-
  amsg %away is afk due to %here $asctime 
}
on *:text:$(* $+ $me $+ *):#: { 
  if ($me == %away)  { 
    .notice $nick Sorry $nick but I am away. Reason: %here $+ . To Leave a Message w/o color type !page <messagehere>
  } 
}
on *:text:!page*:#: { 
  if ($me == %away) {   
    query $me $nick said $2- at $asctime
  }
}
alias back { 
  amsg %away is now back from %here Was gone for $duration($nick(#,$me).idle) 
  unset %away 
  unset %here 
}

Comments

Sign in to comment.
Savage_CL   -  Aug 09, 2013

Some things...

You may want to add a list of people you've already notified so you can't get flooded off the server too easily. Also, you should make use of the server command "away".

napa182  -  Aug 29, 2013

yes make use of the $away an $awaymsg so you wont have to set global vars

Sign in to comment

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.