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...