m (Bot: adding missing title) |
|||
Line 8: | Line 8: | ||
<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 level for the event to trigger. | ||
− | <span style="display: inline-block; width: 105px;">'''<#,[,#]>'''</span>The text that to be matched. Can also be a | + | <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> |
Revision as of 13:21, 20 October 2018
The ON PART event triggers when the mIRC client, or a remote user, parts/leaves a channel.
Synopsis
ON <level>:PART:<#[,#]>:<commands>
Parameters
<level>The level for the event to trigger.
<#,[,#]>The text that to be matched. Can also be a wildcard.
<commands>The commands to be performed when the event listener's criteria is met.
Examples
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
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
A on Action, on Active, on Agent, on Appactive B on Ban C on Char, on Chat, on Chatclose, on Chatopen, on Close, on Connect, on Connectfail, on Ctcpreply D on Dccserver, on Dehelp, on Deop, on Deowner, on Devoice, on Dialog, on Disconnect, on Dns |
J on Join K on Keydown, on Keyup, on Kick M on Midiend, on Mode, on Mp3end N on Nick, on Nosound, on Notice, on Notify P on Parseline, on Part, on Ping, on Playend, on Pong |
Q on Queryclose, on Queryopen, on Quit S on Sendfail, on Serv, on Servclose, on Servermode, on Serverop, on Servopen, on Signal, on Snotice, on Sockclose, on Socklisten, on Sockopen, on Sockread, on Sockwrite, on Start U on Udpread, on Udpwrite, on Unban, on Unload, on Unotify, on Usermode |