mIRC Home    About    Download    Register    News    Help

Print Thread
#112895 27/02/05 07:35 PM
S
Scratch
Scratch
S
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...

#112896 27/02/05 07:38 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
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?

#112897 27/02/05 07:43 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Code:
on 1:CONNECTFAIL: {
  echo -s CONNECTFAIL ERROR: $1-
}


Type /server irc.thisisadummyserver.co.uk what happens?

#112898 27/02/05 07:44 PM
S
Scratch
Scratch
S
Nothing at all...

#112899 27/02/05 07:47 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Bizzare...


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

CONNECTFAIL ERROR: Unable to resolve server

#112900 27/02/05 07:49 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
[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...

#112901 27/02/05 08:05 PM
D
DaveC
DaveC
D
/remote on

#112902 27/02/05 08:10 PM
S
Scratch
Scratch
S
They are on, all my other events work, it's just this one that doesn't...

#112903 27/02/05 08:13 PM
I
Iori
Iori
I
Did you wait for all the retries to fail?


Link Copied to Clipboard