mIRC Home    About    Download    Register    News    Help

Print Thread
#133752 24/10/05 05:04 PM
Joined: May 2005
Posts: 449
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
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.

#133753 24/10/05 05:07 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
alias F1 {
  unsetall
  quit $iif($?="Quit message:",$v1,%defaultqmsg)
  exit
}


/set %defaultqmsg <quit message>

#133754 24/10/05 05:18 PM
Joined: May 2005
Posts: 449
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Thanks, that works, except I switched the unsetall to after the quit. I figured it would get unset the way it was. Thanks again.

Last edited by bwr30060; 24/10/05 05:21 PM.

Link Copied to Clipboard