/AWAY Alias

By UTUCS.com-Admin on Feb 12, 2004

This is a /AWAY to replace the existing /AWAY.

%away.nickaway = [Away]
; Change that to |Away if you'd like.
/away {
  if (!$1) {
     away
}
else {
     away $1-
     ame is away ( $+ $1- $+ ) [ $+ $time(HH:nnt) $+ ]
     nick $me $+ %away.nickaway
  }
}

Comments

Sign in to comment.
sailoreagle   -  Feb 13, 2004

As for %away.nickaway, yes, that\'s one way of setting a global variable. You have to do it -inside- a script though, or it won\'t get set. That, or add it manually to the variables section. || If you\'re having the away system change your nick when you go away, though, why not also have it change it back automatically when you come back?

 Respond  
sailoreagle   -  Feb 13, 2004

I tested it, too. The result: [21:21:13] * eagle_testing is away (just testing.)$time(HH:nnt)

 Respond  
UTUCS.com-Admin   -  Feb 13, 2004

I think I did test it though, without the %away.nickaway. Did you see the \"reason\" part on my away ({P_R_OG) on UnderNet, #Hawkee.com? That\'s the whole script!

 Respond  
UTUCS.com-Admin   -  Feb 13, 2004

Isn\'t it a global variable?

 Respond  
sailoreagle   -  Feb 13, 2004

Doesn\'t work properly. 1. you can\'t specify variables outside of a script. Especially not in aliases, which is where I presume this script will go. So the nick-changing doesn\'t work. 2. If you want to have [ ] brackets around text you need to double them ([[ ]]), because in mIRCscript square brackets are used to control evaluation. So this script does not work as intended. As you\'d have seen if you\'d TESTED your script before submitting it. It\'s not like it doesn\'t say to do that on the \"Submit your snippet\" page... sheesh.

 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.