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

(Created On invite event - mIRC)
 
m (Bot: Adding a template (template:mIRC on event list))
Line 30: Line 30:
 
* [[On notice - mIRC|ON NOTICE]]
 
* [[On notice - mIRC|ON NOTICE]]
 
* [[On text - mIRC|ON TEXT]]
 
* [[On text - mIRC|ON TEXT]]
 +
{{mIRC on event list}}
  
[[Category:mIRC on events]]
+
[[Category:MIRC on events]]

Revision as of 23:04, 3 July 2014

The ON INVITE event triggers when a user sends the mIRC client and invite to a specific channel.

Synopsis

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

Parameters

<level>The level 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

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

Added: mIRC v2.1a

Added On: 28/02/95

See Also