mIRC Homepage
Posted By: Scratch on CONNECTFAIL - 27/02/05 07:35 PM
When exactly does the on CONNECTFAIL event trigger? I've been experimenting with this event, and I have yet to see it trigger...

I tried using the following:

Code:
on *:CONNECTFAIL:{
echo -a Connect Error: $1-
}


I then try to connect to an IRC server using a proxy that I know is not working, and the event does not trigger. Next, I tried connecting to an IRC server with a proxy that works, and is on port 1080. When I connect to the IRC server, the IRC server disconnects me for using a "insecure" proxy. Fine. But the on CONNECTFAIL event still does not trigger...
Posted By: LethPhaos Re: on CONNECTFAIL - 27/02/05 07:38 PM
I suppose it triggers when mIRC failed to connect to an irc server after all the retries.
"The on CONNECTFAIL event uses the same as above and triggers when a connection attempt (including all retries) has failed. $1- is set to the connect error message."
This is from mIRC help file, have you read this? What part didn't you understand?
Posted By: SladeKraven Re: on CONNECTFAIL - 27/02/05 07:43 PM
Code:
on 1:CONNECTFAIL: {
  echo -s CONNECTFAIL ERROR: $1-
}


Type /server irc.thisisadummyserver.co.uk what happens?
Posted By: Scratch Re: on CONNECTFAIL - 27/02/05 07:44 PM
Nothing at all...
Posted By: SladeKraven Re: on CONNECTFAIL - 27/02/05 07:47 PM
Bizzare...


-
[19:45] * Connecting to irc.thisisadummyserver.co.uk (6667)
-
[19:45] * Unable to resolve server

CONNECTFAIL ERROR: Unable to resolve server
Posted By: LethPhaos Re: on CONNECTFAIL - 27/02/05 07:49 PM
[2005 Sun 27 Feb][20:47:59] * Unable to resolve server
-
[2005 Sun 27 Feb][20:48:01] * Connect retry #30 irc.thisisadummyserver.co.uk (6667)
-
[2005 Sun 27 Feb][20:48:01] * Unable to resolve server

CONNECTFAIL ERROR: Unable to resolve server
=> this is what I get...
Posted By: DaveC Re: on CONNECTFAIL - 27/02/05 08:05 PM
/remote on
Posted By: Scratch Re: on CONNECTFAIL - 27/02/05 08:10 PM
They are on, all my other events work, it's just this one that doesn't...
Posted By: Iori Re: on CONNECTFAIL - 27/02/05 08:13 PM
Did you wait for all the retries to fail?
© mIRC Discussion Forums