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

m (Bot: Adding a template (template:mIRC on event list))
m (Bot: Automated text replacement (-Added On:.+\n?\n?\n?\n?\n? +))
Line 22: Line 22:
 
== Compatibility ==
 
== Compatibility ==
 
Added: mIRC v3.8
 
Added: mIRC v3.8
 
Added On: 25/11/95
 
  
 
== See Also ==
 
== See Also ==

Revision as of 00:04, 6 July 2014

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

ON <level>:SNOTICE:<matchtext>:<commands>

Parameters

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

Halt the default server notice and echo it to the active window in plain text:

ON ^*:SNOTICE:*: {
  echo -a * Server notice: $1-
  haltdef
}

Compatibility

Added: mIRC v3.8

See Also