mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2007
Posts: 202
F
firefox Offline OP
Fjord artisan
OP Offline
Fjord artisan
F
Joined: Sep 2007
Posts: 202
I have been using a server lately which seems to have stability issues and goes down quite a bit frown

I'd like to keep trying to reconnect after mircs 99 retries have stopped

would something like this work?

Code:
on *:CONNECTFAIL:

if ($network == badnetwork) { /server badnetwork }


Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Why not just increase your number of retries and perhaps also the time between each retry?


Invision Support
#Invision on irc.irchighway.net
Joined: Sep 2007
Posts: 202
F
firefox Offline OP
Fjord artisan
OP Offline
Fjord artisan
F
Joined: Sep 2007
Posts: 202
for some reason I was thinking it was limited to a max of 99 in the max. retries box but just tried 200 and 500 and it accepted it.

However I only want to do it for this network - if any other network can't connect I want it to give up after the normal number of retry attempts

Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
You can indeed use that event, however after trying it, there's a problem, $server is $null ($network can't be used, that value is retrieved when you successfuly connect to a server).
This seems to be a bug so I'm not sure about what you can do in the meantime


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Yeah that looks like a bug. In the meantime an ugly hack may help:
Code:
on *:connectfail:{
  var %server = $iif($server, $v1, $left($gettok($window(Status Window).title, -1, 32), -1))
  ; Do something with %server here
}


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Sep 2007
Posts: 202
F
firefox Offline OP
Fjord artisan
OP Offline
Fjord artisan
F
Joined: Sep 2007
Posts: 202
thank you starbucks_mafia


Link Copied to Clipboard