From WikiChip
Difference between revisions of "mirc/on events/on snotice"
m (Bot: Adding a template (template:mIRC on event list)) |
m (→Parameters: Link access levels) |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|On Snotice - Events}} | ||
The '''ON SNOTICE''' event triggers when mIRC receives a server notice. | The '''ON SNOTICE''' event triggers when mIRC receives a server notice. | ||
Line 7: | Line 8: | ||
== 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;">'''<matchtext>'''</span>The text that to be matched. Can also be a | + | <span style="display: inline-block; width: 105px;">'''<matchtext>'''</span>The text that to be matched. Can also be a {{mirc|wildcard}}. |
<span style="display: inline-block; width: 105px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met. | <span style="display: inline-block; width: 105px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met. | ||
Line 21: | Line 22: | ||
== Compatibility == | == Compatibility == | ||
− | + | {{mIRC compatibility|3.8}} | |
− | |||
− | |||
== See Also == | == See Also == | ||
Line 31: | Line 30: | ||
{{mIRC on event list}} | {{mIRC on event list}} | ||
− | [[Category: | + | [[Category:mIRC on events|snotice]] |
Latest revision as of 07:07, 6 February 2024
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The ON SNOTICE event triggers when mIRC receives a server notice.
This event fills the $1- identifier with the text from the server notice.
Synopsis[edit]
ON <level>:SNOTICE:<matchtext>:<commands>
Parameters[edit]
<level>The corresponding access levels for the event to trigger.
<matchtext>The text that to be matched. Can also be a wildcard.
<commands>The commands to be performed when the event listener's criteria is met.
Example[edit]
Halt the default server notice and echo it to the active window in plain text:
ON ^*:SNOTICE:*: { echo -a * Server notice: $1- haltdef }
Compatibility[edit]
Added: mIRC v3.8
Added on: 25 Nov 1995
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