on encrypted_notice
This event is generated when someone sends you an encrypted notice (that contains a ctcp sed), As with all notice hooks, you cannot send a msg or notice to a person over irc from within this hook. This event is done after ignore checking, but before flood control checking.
$0 | nickname of message sender |
$1 | target of message (the sender or channel) |
$2- | message received |
If you do not suppress this event, the client will throw an on general_notice event.
To clearly distinguish encrypted NOTICEs from unencrypted ones:
on ^encrypted_notice '% $0 *' { echo -${[$0]}- [ENCRYPTED] $1- }