On snotice
From Scriptwiki
Triggers when a server sends you a notice message
on <level>:SNOTICE:<matchtext>:<commands>
- Level is inapplicable for a server, you should use 1 or * for its level
- Matchtext can be a wildcard
- Can be used in conjunction with the ^ prefix and haltdef command
Example
on *:SNOTICE:*:echo -atg The server sent the following notice to you: $1-