mIRC Home    About    Download    Register    News    Help

Print Thread
#9150 01/02/03 12:18 AM
Joined: Feb 2003
Posts: 4
Q
Self-satisified door
OP Offline
Self-satisified door
Q
Joined: Feb 2003
Posts: 4
Is it possible to make mirc reconnect on any disconnects, except my own QUIT? For example it wont reconnect if i got /KILLed it just haltes. Can i trace KILL by some event?

#9151 01/02/03 12:22 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Options -> Connect -> Options, check the "Reconnect on disconnection" check box.

#9152 01/02/03 12:28 AM
Joined: Feb 2003
Posts: 4
Q
Self-satisified door
OP Offline
Self-satisified door
Q
Joined: Feb 2003
Posts: 4
Yeah.. Sure. As i said it won't reconnect if i got /KILLed!

*** You were killed by Admin (abuse.womnet.net!Admin (bye))
-
Closing Link: Questionarie[fra-tgn-oyj-vty28.as.wcom.net] ([irc.zeg.ru] Local kill by Admin (bye))
-

#9153 01/02/03 12:36 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Ah, I misunderstood, I thought you meant make a script that would reconnect you unless you disconnected on purpose or were killed...

#9154 01/02/03 12:47 AM
Joined: Feb 2003
Posts: 4
Q
Self-satisified door
OP Offline
Self-satisified door
Q
Joined: Feb 2003
Posts: 4
It is easy to make a script to reconnect even if got /KILLed, but it also will reconnect if i just press Disconnect button.

Maybe there is some identifier or something... i am searching answer to this question and some other (i will post them later;) for a long time =)

#9155 01/02/03 12:58 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
I have the answer, but it may not work on all servers (different servers have different ways of telling you you've been killed), but this one worked for me (tested on Unreal IRCd):
Code:
on *:ERROR:ERROR Closing link*:{
  if ( $7 == kill ) {
    server $server
  }
}

#9156 02/02/03 02:36 AM
Joined: Feb 2003
Posts: 4
Q
Self-satisified door
OP Offline
Self-satisified door
Q
Joined: Feb 2003
Posts: 4
Thanks. This is excactly what i was looking for.


Link Copied to Clipboard