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

m (Bot: Automated text replacement (-Added On:.+\n?\n?\n?\n?\n? +))
m (Parameters: Link access levels)
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
{{mirc title|On Part - Events}}
 
The '''ON PART''' event triggers when the mIRC client, or a remote user, parts/leaves a channel.
 
The '''ON PART''' event triggers when the mIRC client, or a remote user, parts/leaves a channel.
  
Line 5: Line 6:
  
 
== Parameters ==
 
== Parameters ==
<span style="display: inline-block; width: 105px;">'''<level>'''</span>The level for the event to trigger.
+
<span style="display: inline-block; width: 105px;">'''<level>'''</span>The corresponding {{mIRC|access levels}} for the event to trigger.
  
<span style="display: inline-block; width: 105px;">'''<#,[,#]>'''</span>The text that to be matched. Can also be a [[wildcard]].
+
<span style="display: inline-block; width: 105px;">'''<#,[,#]>'''</span>The text that to be matched. Can also be a {{mirc|wildcard}}.
  
 
<div style="background-color: rgba(0,0,0,.06); display: block;"><span style="border-right: 1px dashed rgba(0,0,0,.15); display: inline-block; margin-left: 105px; margin-right: 25px; width: 60px;">'''[,#]'''</span>Specific channel names</div>
 
<div style="background-color: rgba(0,0,0,.06); display: block;"><span style="border-right: 1px dashed rgba(0,0,0,.15); display: inline-block; margin-left: 105px; margin-right: 25px; width: 60px;">'''[,#]'''</span>Specific channel names</div>
Line 23: Line 24:
  
 
== Compatibility ==
 
== Compatibility ==
Added: mIRC v2.1a
+
{{mIRC compatibility|2.1a}}
  
 
== See Also ==
 
== See Also ==
 
* [[on join - mIRC|ON JOIN]]
 
* [[on join - mIRC|ON JOIN]]
* [[list of on events - mIRC|ON EVENTS]]
+
* {{mIRC|on events|List of on events}}
 
{{mIRC on event list}}
 
{{mIRC on event list}}
  
[[Category:MIRC on events]]
+
[[Category:mIRC on events|part]]

Latest revision as of 07:59, 6 February 2024

The ON PART event triggers when the mIRC client, or a remote user, parts/leaves a channel.

Synopsis[edit]

ON <level>:PART:<#[,#]>:<commands>

Parameters[edit]

<level>The corresponding access levels for the event to trigger.

<#,[,#]>The text that to be matched. Can also be a wildcard.

[,#]Specific channel names

<commands>The commands to be performed when the event listener's criteria is met.

Examples[edit]

Once the local mIRC client has left a channel, echo to the channel window the total users inside of the channel:

ON ME:*:PART:#:echo # You have left # $+ .

The above example makes use of the ON ME event, which triggers only when the local mIRC client triggers the event, not remote users.

When a user leaves, send them a notice:

ON *:PART:#:msg # So sorry to see you go, $nick $+ !

Compatibility[edit]

Added: mIRC v2.1a
Added on: 28 Feb 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]