mIRC Home    About    Download    Register    News    Help

Print Thread
#185787 13/09/07 11:34 PM
Joined: Oct 2003
Posts: 110
D
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

Joined: Oct 2004
Posts: 8,330
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
Joined: Oct 2003
Posts: 110
D
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)

Joined: Jul 2006
Posts: 107
L
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

Link Copied to Clipboard