From WikiChip
Editing mirc/on events/on join
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
The '''ON JOIN''' event triggers when the mIRC client, or a remote user, joins a channel. | The '''ON JOIN''' event triggers when the mIRC client, or a remote user, joins a channel. | ||
− | |||
− | |||
== Synopsis == | == Synopsis == | ||
Line 8: | Line 5: | ||
== Parameters == | == Parameters == | ||
− | <span style="display: inline-block; width: 105px;">'''<level>'''</span>The | + | <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 [[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> | ||
Line 17: | Line 14: | ||
== Examples == | == Examples == | ||
+ | Once the local mIRC client has joined a channel, echo to the channel window the total users inside of the channel: | ||
+ | <source lang="mIRC">ON ME:*:JOIN:#:echo # Total Users: $nick(#,0)</source> | ||
− | The | + | The above example makes use of the [[on me - mIRC|ON ME]] event, which triggers only when the local mIRC client triggers the event, not remote users. |
− | |||
− | |||
− | |||
− | |||
− | + | When a user joins, send them a greeting: | |
<source lang="mIRC">ON *:JOIN:#:msg # Welcome to # $+ , $nick $+ !</source> | <source lang="mIRC">ON *:JOIN:#:msg # Welcome to # $+ , $nick $+ !</source> | ||
− | + | == Compatibility == | |
− | + | Added: mIRC v2.1a | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Added On: 28/02/95 | |
− | |||
== See Also == | == See Also == | ||
* [[on part - mIRC|ON PART]] | * [[on part - mIRC|ON PART]] | ||
− | * | + | * [[list of on events - mIRC|ON EVENTS]] |
− | |||
− | [[Category:mIRC on events | + | [[Category:mIRC on events]] |