# $EPIC: on_general_notice.txt,v 1.5 2008/02/20 03:41:30 jnelson Exp $
on [<modes>]general_notice [<serial#>] [-|^]<match> { <action> }
The on general_notice hook is thrown when you receive a notice from a server or an irc user, in such a manner as to present you the complete picture of who sent the notice and who they sent it to. This can replace having to catch several different types of ons. You are never required to catch the on general_notice hook – the default behavior is for it to keep throwing the ons that notices have always thrown.
When you receive a notice from someone (either another irc user, or an irc server), it gets offered to you through several different ons.
If the notice is from the server you are connected to
If the notice is from another irc user or a remote server,
These lists are “chained” – that is, a single notice may generate up to three different on events, assuming you don't “handle” them. However, if you do “handle” an on then the chain would stop right there.
$0 | nickname of message sender |
$1 | target of message |
$2- | text of message |
If you do not suppress this event…
The on general_notice hook first appeared in EPIC4-1.1.3