on_public_notice
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | on_public_notice [2006/08/29 16:08] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: on_public_notice.txt, | ||
+ | ======Synopsis: | ||
+ | [[on]] [< | ||
+ | |||
+ | ======Description: | ||
+ | This hook is triggered whenever a [[NOTICE]] is sent to any channel the | ||
+ | client is on from someone not actually on that channel. | ||
+ | |||
+ | This hook will not be thrown if a matching [[ON]] [[on GENERAL_NOTICE|GENERAL_NOTICE]] hook | ||
+ | is being used in silent mode. [[ON]] [[on GENERAL_NOTICE|GENERAL_NOTICE]] and [[ON]] __PUBLIC_NOTICE__ | ||
+ | are mutually exclusive. | ||
+ | |||
+ | ======Parameters: | ||
+ | |$0 |nickname sending message| | ||
+ | |$1 |channel sent to| | ||
+ | |$2- |text of message| | ||
+ | |||
+ | ======Examples: | ||
+ | To distinguish [[NOTICE]]s sent to the current channel vs. other channels: | ||
+ | on ^public_notice " | ||
+ | if ( [$1] == C ) { | ||
+ | echo +$0+ $2- | ||
+ | } { | ||
+ | echo +$0:$1+ $2- | ||
+ | } | ||
+ | } | ||
+ | |||
+ | ======Restrictions: | ||
+ | The client does not permit any automated messages to be sent in response | ||
+ | to a [[NOTICE]]. | ||
+ | this is to prevent loops between clients. | ||
on_public_notice.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1