mIRC Home    About    Download    Register    News    Help

Print Thread
Do online command on exit #185787 13/09/07 11:34 PM
Joined: Oct 2003
Posts: 110
D
DeathWolf Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Oct 2003
Posts: 110
I would like to find a way to run one last command when closing mirc, before it disconnects everything...
Does anyone see a way to do that?

on exit seems to only act after all server connections get disconnected...

DeathWolf

Re: Do online command on exit [Re: DeathWolf] #185788 14/09/07 12:05 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
on DISCONNECT should do what you need.


Invision Support
#Invision on irc.irchighway.net
Re: Do online command on exit [Re: Riamus2] #185826 14/09/07 09:07 PM
Joined: Oct 2003
Posts: 110
D
DeathWolf Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Oct 2003
Posts: 110
Sadly on disconnect seems to act after the disconnection too:(
(which isnt surprising since it's triggered by the disconnection itself)

Re: Do online command on exit [Re: DeathWolf] #185829 14/09/07 09:30 PM
Joined: Jul 2006
Posts: 107
L
LonDart Offline
Vogon poet
Offline
Vogon poet
L
Joined: Jul 2006
Posts: 107
My first guess is you'll have to alias it, then force yourself
into a new habit of typing that command rather than /exit.

Something like
Code:
alias finis {
  one-more-thing-before-I-go command
  .timer 1 0 exit
}

The timer may be overkill, depending on your 'last thing'.


LonDart