From WikiChip
Difference between revisions of "mirc/on events/on connectfail"
< mirc‎ | on events

(Created On connectfail event - mIRC)
 
m (Bot: adding missing title)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{mirc title|On Connectfail - Events}}
 
The '''ON CONNECTFAIL''' event triggers when mIRC fails to connect to an IRC server. This event will also trigger during reconnect attempt disconnections. The '''$1-''' identifier is filled with any server disconnect message that is passed to mIRC.
 
The '''ON CONNECTFAIL''' event triggers when mIRC fails to connect to an IRC server. This event will also trigger during reconnect attempt disconnections. The '''$1-''' identifier is filled with any server disconnect message that is passed to mIRC.
  
Line 5: Line 6:
  
 
== Parameters ==
 
== Parameters ==
<span style="display: inline-block; width: 105px;">'''<level>'''</span>The level for the event to trigger.
+
* '''<level>''' - The corresponding {{mIRC|access levels}} for the event to trigger.
  
<span style="display: inline-block; width: 105px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met.
+
* '''<commands>''' - The commands to be performed when the event triggers
  
 
== Examples ==
 
== Examples ==
 
<source lang="mIRC">; Stop mIRC from reconnecting
 
<source lang="mIRC">; Stop mIRC from reconnecting
 
; after a connection failure.
 
; after a connection failure.
ON *:CONNECTFAIL:disconnect</source>
+
ON *:CONNECTFAIL:echo -s connection to $servertarget failed: $1- | disconnect</source>
  
 
== Compatibility ==
 
== Compatibility ==
Added: mIRC v6.02
+
{{mIRC compatibility|6.02}}
 
 
Added On: 06/06/2002
 
  
 
== See Also ==
 
== See Also ==
 
* [[On connect - mIRC|ON CONNECT]]
 
* [[On connect - mIRC|ON CONNECT]]
 
* [[On disconnect - mIRC|ON DISCONNECT]]
 
* [[On disconnect - mIRC|ON DISCONNECT]]
* [[$network identifier - mIRC|$network]]
+
* {{mIRC|$network}}
* [[$server identifier - mIRC|$server]]
+
* {{mIRC|$server}}
 +
* {{mIRC|$servertarget}}
 +
{{mIRC on event list}}
  
[[Category:mIRC on events]]
+
[[Category:mIRC on events|connectfail]]

Latest revision as of 20:12, 15 June 2017

The ON CONNECTFAIL event triggers when mIRC fails to connect to an IRC server. This event will also trigger during reconnect attempt disconnections. The $1- identifier is filled with any server disconnect message that is passed to mIRC.

Synopsis[edit]

ON <level>:CONNECTFAIL:<commands>

Parameters[edit]

  • <level> - The corresponding access levels for the event to trigger.
  • <commands> - The commands to be performed when the event triggers

Examples[edit]

; Stop mIRC from reconnecting
; after a connection failure.
ON *:CONNECTFAIL:echo -s connection to $servertarget failed: $1- | disconnect

Compatibility[edit]

Added: mIRC v6.02
Added on: 06 Jun 2002
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]