From WikiChip
Difference between revisions of "mirc/on events/on invite"
m (Bot: Fixing compatibility) |
m (→Parameters: Link access levels) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|On Invite - Events}} | ||
The '''ON INVITE''' event triggers when a user sends the [[mIRC]] client and invite to a specific channel. | The '''ON INVITE''' event triggers when a user sends the [[mIRC]] client and invite to a specific channel. | ||
Line 5: | Line 6: | ||
== Parameters == | == Parameters == | ||
− | <span style="display: inline-block; width: 105px;">'''<level>'''</span>The | + | <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 channel or channels for which the event occurred. | <span style="display: inline-block; width: 105px;">'''<#[,#]>'''</span>The channel or channels for which the event occurred. | ||
Line 23: | Line 24: | ||
== Compatibility == | == Compatibility == | ||
− | {{mIRC compatibility| | + | {{mIRC compatibility|4.5}} |
== See Also == | == See Also == | ||
Line 30: | Line 31: | ||
{{mIRC on event list}} | {{mIRC on event list}} | ||
− | [[Category: | + | [[Category:mIRC on events|invite]] |
Latest revision as of 06:43, 6 February 2024
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The ON INVITE event triggers when a user sends the mIRC client and invite to a specific channel.
Synopsis[edit]
ON <level>:INVITE:<#[,#]>:<commands>
Parameters[edit]
<level>The corresponding access levels for the event to trigger.
<#[,#]>The channel or channels for which the event occurred.
#If no channel mentioned, targets all channels; otherwise, a specific channel.
[,#]Can be used to specify multiple, literal channel targets.
<commands>The commands to be performed when the event listener's criteria is met.
Examples[edit]
Echo to the active window the user and channel of the invite details:
ON *:INVITE:#:echo -a $nick has extended an invite to $chan
Automatically join the channel from the invite:
ON *:INVITE:#:join $chan
Compatibility[edit]
Added: mIRC v4.5
Added on: 30 Jun 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also[edit]
mIRC on event list