From WikiChip
Difference between revisions of "mirc/on events/on kick"
(Created On kick event - mIRC) |
m (→Examples) |
||
Line 39: | Line 39: | ||
Send a notice to a kicked user with information about the kick: | Send a notice to a kicked user with information about the kick: | ||
<source lang="mIRC">ON *:KICK:#: { | <source lang="mIRC">ON *:KICK:#: { | ||
− | .notice $knick You were kicked by $nick for the following reason: $iif($1-,$1-,No reason given) | + | .notice $knick You were kicked from $chan by $nick for the following reason: $iif($1-,$1-,No reason given) |
} | } | ||
</source> | </source> | ||
The following is an example of the above code: | The following is an example of the above code: | ||
− | <pre>You were kicked by | + | <pre>You were kicked from #BreakingBad by WalterWhite for the following reason: Stop mass-highlighting!</pre> |
== Compatibility == | == Compatibility == |
Revision as of 14:25, 25 June 2014
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
ON <level>:KICK:<#[,#]>:<commands>
Parameters
<level>The level 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
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
Created: mIRC v
Created On: