mIRC Homepage
Posted By: bwr30060 changing away alias - 24/10/05 05:04 PM
Hi,

I have this simple alias for quitting but I'd like to make a change to it if I can. Basically, it opens a text box for me to enter a message that will be used as the quit message. I'd like to change it so that if I hit enter with the text box with nothing in it, it will use a default quit message that I'll have in the script like "Be back later". Here's the alias

Code:
/f1 {
  unsetall
  quit $$?"Message:"
  exit
}

The "unsetall" needs to be there to unset variables that I have for a nick logging script. Thanks for any help.
Posted By: hixxy Re: changing away alias - 24/10/05 05:07 PM
Code:
alias F1 {
  unsetall
  quit $iif($?="Quit message:",$v1,%defaultqmsg)
  exit
}


/set %defaultqmsg <quit message>
Posted By: bwr30060 Re: changing away alias - 24/10/05 05:18 PM
Thanks, that works, except I switched the unsetall to after the quit. I figured it would get unset the way it was. Thanks again.
© mIRC Discussion Forums