mIRC Homepage
Posted By: Questionarie Reconnects - 01/02/03 12:18 AM
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?
Posted By: Collective Re: Reconnects - 01/02/03 12:22 AM
Options -> Connect -> Options, check the "Reconnect on disconnection" check box.
Posted By: Questionarie Re: Reconnects - 01/02/03 12:28 AM
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))
-
Posted By: Collective Re: Reconnects - 01/02/03 12:36 AM
Ah, I misunderstood, I thought you meant make a script that would reconnect you unless you disconnected on purpose or were killed...
Posted By: Questionarie Re: Reconnects - 01/02/03 12:47 AM
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 =)
Posted By: Collective Re: Reconnects - 01/02/03 12:58 AM
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
  }
}
Posted By: Questionarie Re: Reconnects - 02/02/03 02:36 AM
Thanks. This is excactly what i was looking for.
© mIRC Discussion Forums