mIRC Home    About    Download    Register    News    Help

Print Thread
on CONNECTFAIL #112895 27/02/05 07:35 PM
Joined: Jan 2005
Posts: 37
S
Scratch Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 37
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...

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

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


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

Re: on CONNECTFAIL #112898 27/02/05 07:44 PM
Joined: Jan 2005
Posts: 37
S
Scratch Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 37
Nothing at all...

Re: on CONNECTFAIL #112899 27/02/05 07:47 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Bizzare...


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

CONNECTFAIL ERROR: Unable to resolve server

Re: on CONNECTFAIL #112900 27/02/05 07:49 PM
Joined: Aug 2004
Posts: 237
L
LethPhaos Offline
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...

Re: on CONNECTFAIL #112901 27/02/05 08:05 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
/remote on

Re: on CONNECTFAIL #112902 27/02/05 08:10 PM
Joined: Jan 2005
Posts: 37
S
Scratch Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 37
They are on, all my other events work, it's just this one that doesn't...

Re: on CONNECTFAIL #112903 27/02/05 08:13 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Did you wait for all the retries to fail?