Difference between revisions of "On notice"
From Scriptwiki
(changed iswm link) |
m |
||
Line 21: | Line 21: | ||
== See Also == | == See Also == | ||
− | + | * [[On_text|On text event]] to react on "normal" texts, both in channel and query. | |
− | + | * [[On_action|On action event]] is triggered whenever you receive an action. | |
− | + | * [[notice|/notice]] to send notices. | |
− | |||
− | |||
[[Category:Events]] | [[Category:Events]] |
Latest revision as of 09:56, 2 July 2007
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.
Example
on ^*:NOTICE:*:*: { if ($nick == Q) { haltdef 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
- On text event to react on "normal" texts, both in channel and query.
- On action event is triggered whenever you receive an action.
- /notice to send notices.