mIRC Home    About    Download    Register    News    Help

Print Thread
#48397 10/09/03 09:02 AM
Joined: Aug 2003
Posts: 73
C
CyBot Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Aug 2003
Posts: 73
Hey how do you make an on quit message (without using the one in options), i think it may be different in 6.1.

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


The blue monkey is out of its barrel...
#48398 10/09/03 09:38 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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:

Code:
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


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#48399 10/09/03 09:43 AM
Joined: Aug 2003
Posts: 73
C
CyBot Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Aug 2003
Posts: 73
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...

:tongue:


The blue monkey is out of its barrel...
#48400 10/09/03 09:43 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
In addition to what Raccoon said, you can use a variable instead of an identifier.


Link Copied to Clipboard