Away Alias

By Bouncer on Feb 22, 2007

Type /leave (reason) to set yourself as away.
Messages all channels stating what time you left and for what reason.
Type /return to be set back.
Messages all channels stating what time you returned and your previously stated reason.
Replace (nick) under alias leave with your away nickname.

Revision 1:
Added a feature to remember your original nick before you went away so that it will change back to that on alias return.

alias leave {
  set %away.time $time(hh:nntt)
  set %orignick $me
  nick (nick)
  set %away.reason $1-
  amsg 14,1[0,1 I am leaving at:3,1 %away.time 14,1][0,1 Reason:3,1 $1- 14,1]
  away %away.reason
}

alias return {
  nick %orignick
  amsg 14,1[0,1 I have returned at:3,1 $time(hh:nntt) 14,1][0,1 From:3,1 %away.reason 14,1]
  unset %orignick
  away
}

Comments

Sign in to comment.
Atr   -  Jul 30, 2009

Doesn't '/leave' leave the channel you're currently in?

 Respond  
Wanabepc   -  Jul 30, 2009

Hey nice script but you need it to be like below or it will not unset people reason for away

alias return {
  nick %orignick
  amsg 14,1[0,1 I have returned at:3,1 $time(hh:nntt) 14,1][0,1 From:3,1 %away.reason 14,1]
  unset %orignick
  unset %away.reason
  unset %away.time
  away
} 

Also if you wanted it in text commands you could use this

on *:TEXT:!away*:#: {
    set %away.time $time(hh:nntt)
    set %orignick $me
    nick (nick)
    set %away.reason $2-
    amsg 4[ $nick is now away! ]12[ Reason: %away.reason ]
    away %away.reason
  }
}
on *:TEXT:!back*:#: {
    nick %orignick
    amsg 4[ $nick has returned at: $time(hh:nntt) ]12[ From: %away.reason ]
    unset %orignick
    unset %away.reason
    unset %away.time
    away
  }
}
 Respond  
Mervyn^   -  Apr 27, 2008

You should add that how long you were away.
But its simple and working. Gj.

 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.