Another AWAY script

By Cypher87 on Mar 03, 2004

This is a very simpel to use script. To start type /away . When you are back type /away again. (Put it in remote)

alias away {
  if (%afknick == $null) {
    set %afknick $$?="Away nick?"
  }
  if (%away == no) {
    set %nnick $me
    set %reason $$?="Reason?"
    away %reason
    ame Away: %reason
    set %away yes
    nick %afknick
  }
  else {
    set %away no
    nick %nnick
    away
    ame was away for: $duration($awaytime), $me is back from: %reason
  }
}

Comments

Sign in to comment.
tsukasa   -  Mar 05, 2004

i hate to do this....looking at the script i noticed the else statement...for me at least the else is great when theres only 1 if statement that isnt \'true\' i like using elseif better....everytime i used else it would screw up so i stopped bothering to use it....sorry for the semi-pointless rambling but i just thought ide say that...i havent tested it since not many people like the \'annoying\' part of them but just by the way the code looks...u did a great job on it!

 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.