away script i made to help some1

By Korvin on Feb 18, 2008

just paste in remotes and type /away REASON

very simple, made in 2 minutes -.-

alias away2 {
  set %__time $ctime
  set %__time2 $time
  set %__rsn $iif($1,$1-,no reason)
  set %__nck $me
  nick %__nck $+ `away
  amsg $enick(AWAY: I am now away because:) $enick1(%__rsn) $+ , it is currently %__time2 $+ .
}
on *:text:$($+(*,$me,*)):*: notice $nick $enick(I'm currently away, I've been away for $duration($calc($ctime - %__time)) since %__time2)
on *:INPUT:*: {
  if (%__time) { 
    amsg $enick(Back: I was gone because:) $enick1(%__rsn) $+ , I've been away for $duration($calc($ctime - %__time)) since %__time2
    nick %__nck
    unset %__*
  }
}
alias enick { return $regsubex($1,/^(.)/,$+($chr(3),4,$chr(31),\t,$chr(3),14,$chr(31))) }
alias enick1 { return $regsubex($1-, /(?<=^| )(.)/g, $chr(3) $+ 04\t $+ $chr(3) $+ 14) }

Comments

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.