On notice

From Scriptwiki
Jump to: navigation, search

The on NOTICE event triggers when you receive a notice.

on <level>:NOTICE:<matchtext>:<*><?><#[,#]>:<commands>

The matchtext can be a wildcard match or even a regular expression. To use regular expressions as matchtext, you need the $-Prefix.

Read access levels to get more info about the <level> field.

You can also use variables as matchtext and location parameter

Note that you can't test out these events by typing text to yourself. To test them, use another connection, that you can establish via /server.


on ^*:NOTICE:*:*: {
 if ($nick == Q) { 
  echo -ts Q: $1- 

This event will react on every notice and if the notice is from Q, it will echo it to Status Window only and stop the default output. Note that the "^" infront of the level effects that it is triggered before the default output is displayed.

See Also