mIRC Homepage


Posted By: CyBot

ON QUIT MESSAGE - 10/09/03 09:02 AM

Hey how do you make an on quit message (without using the one in options), i think it may be different in 6.1.

on ^*:quit:{ if ($nick == $me) { quit something ? | halt } }
Posted By: Raccoon

Re: ON QUIT MESSAGE - 10/09/03 09:38 AM

On QUIT only triggers after you actually quit.

If you want to script your own custom/ random quit message, your best bet is to place a custom identifier into your Quit Message field under IRC > Messages.
Put this code in your Aliases or Remotes:

Alias QuitMsg {
  return $read -n quitmsg.txt

Then use $quitmsg as your Quit Message.
Alternatly, you could simply put $read -n quitmsg.txt as your Quit Message, too.

- Raccoon
Posted By: CyBot

Re: ON QUIT MESSAGE - 10/09/03 09:43 AM

I was actually using that, but i remember once on a previous version i was using a script with haltdef etc. i just cant remember how I did it before...

Posted By: Online

Re: ON QUIT MESSAGE - 10/09/03 09:43 AM

In addition to what Raccoon said, you can use a variable instead of an identifier.
© 2021 mIRC Discussion Forums