_Added in 1.9.0_
*on :CONNECTFAIL:*
Triggers when a connection attempt (including all retries) has failed.
_See also [[on CONNECT]], [[on DISCONNECT]]._
*Parameters*
- The level for the event to trigger.
- The commands to be performed when the event listener's criteria is met.
*Example*
on *: CONNECTFAIL:echo -ag Unable to connect to $network $1-