Away script

By brottor on Jul 19, 2005

this is, obv, an away script. right click screen > awaystuff > go away or comeback. it works on highlight of your name on a chan or in any pm every 100 secs. i thought hawkee needed a good away script.
copy/paste into remotes

menu * {
  awaystuff
  .goaway
  ..standard I am away:/set %iamaway on
  ..away (msg):/set %awaymessage $$?="why are you 'away'?"
  .comeback
  ..comeback!: {
    unset %iamaway
    unset %awaymessage
  }
}
on *:text:*:*: {
  if (%iamaway == on) && ($chan == $null) && (%alreadysaidawaypm != on) {
    msg $nick I am away!
    set %alreadysaidaway on
    timer 1 100 /unset %alreadysaidawaypm
  }
  elseif ($me isin $1-) && (%iamaway == on) && (%alreadysaidaway != on) {
    msg $chan I am away!
    set %alreadysaidaway on
    timer 1 100 /unset %alreadysaidaway
  }
  elseif ($me isin $1-) && (%awaymessage != $null) && (%alreadysaidaway != on) {
    msg $chan $me is away: %awaymessage
    set %alreadysaidaway on
    timer 1 100 /unset %alreadysaidaway
  }
  elseif (%awaymessage != $null) && ($chan == $null) && (%alreadysaidawaypm != on) {
    msg $nick $me is away: %awaymessage
    set %alreadysaidaway on
    timer 1 100 /unset %alreadysaidawaypm
  }
}

Comments

Sign in to comment.
ozeskid   -  Nov 20, 2007

i think its pretty decent, nice job

 Respond  
brottor   -  Jul 20, 2005

its not supposed to mark you away...it is its own away

 Respond  
anthalus   -  Jul 19, 2005

/AWAY [away message]
Leaves a message explaining that you are not currently paying attention to IRC. Whenever someone sends you a MSG or does a WHOIS on you, they automatically see whatever message you set. Using AWAY with no parameters marks you as no longer being away.

 Respond  
DarthReven   -  Jul 19, 2005

it doesn\'t set your status to away. use /help /away

 Respond  
Pariah   -  Jul 19, 2005

the timers aren\'t neccessary, set -uN %var would have worked

 Respond  
brottor   -  Jul 19, 2005

if u told it to set you away and some1 says your name in a channel or pms you it will tell them you are away...

 Respond  
Vortex   -  Jul 19, 2005

Dude, brottor..It never set me as away. :/

 Respond  
henrikthesexy   -  Jul 19, 2005

it was are very long code to be a away.........

 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.