From WikiChip
Difference between revisions of "mirc/on events/on kick"
m (→See Also) |
m (→Parameters: Link access levels) |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|On Kick - Events}} | ||
The '''ON KICK''' event is triggered when the local mIRC client, or remote users, are kicked from a channel. | The '''ON KICK''' event is triggered when the local mIRC client, or remote users, are kicked from a channel. | ||
− | This event fills the ''' | + | This event fills the '''{{mIRC|$chan}}''', '''{{mIRC|$knick}}''', and '''{{mIRC|$nick}}''' identifiers. |
{| class="wikitable" style="margin-left: 75px;" | {| class="wikitable" style="margin-left: 75px;" | ||
Line 18: | Line 19: | ||
== 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 the event to listen for. Can also be a | + | <span style="display: inline-block; width: 105px;">'''<#[,#]>'''</span>The channel, or channels, for the event to listen for. Can also be a {{mirc|wildcard}}. |
{| class="wikitable" style="margin-left: 105px;" | {| class="wikitable" style="margin-left: 105px;" | ||
Line 56: | Line 57: | ||
* [[On part - mIRC|ON PART]] | * [[On part - mIRC|ON PART]] | ||
* [[On unban - mIRC|ON UNBAN]] | * [[On unban - mIRC|ON UNBAN]] | ||
− | * | + | * {{mIRC|$chan}} |
− | * | + | * {{mIRC|$knick}} |
− | * | + | * {{mIRC|$nick}} |
+ | {{mIRC on event list}} | ||
− | [[Category:mIRC on events]] | + | [[Category:mIRC on events|kick]] |
Latest revision as of 06:47, 6 February 2024
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The ON KICK event is triggered when the local mIRC client, or remote users, are kicked from a channel.
This event fills the $chan, $knick, and $nick identifiers.
Identifier | Description |
---|---|
$chan | Channel where the event took place |
$knick | The kicked user's name |
$nick | The name of the person who kicked the user |
Synopsis[edit]
ON <level>:KICK:<#[,#]>:<commands>
Parameters[edit]
<level>The corresponding access levels for the event to trigger.
<#[,#]>The channel, or channels, for the event to listen for. Can also be a wildcard.
Target | Description |
---|---|
# | Channel where the event took place |
[,#] | Specific channel names |
<commands>The commands to be performed when the event listener's criteria is met.
Examples[edit]
If local mIRC client is kicked, automatically rejoin the channel:
ON ME:*:KICK:#:join #
Send a notice to a kicked user with information about the kick:
ON *:KICK:#: { .notice $knick You were kicked from $chan by $nick for the following reason: $iif($1-,$1-,No reason given) }
The following is an example of the above code:
You were kicked from #BreakingBad by WalterWhite for the following reason: Stop mass-highlighting!
Compatibility[edit]
Created: mIRC v2.1a
Created On: 28/02/95
See Also[edit]
mIRC on event list