Skip to content

Commit

Permalink
switch hook from Notice::policy to Notice::notice
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaulon committed Aug 1, 2023
1 parent 2e5e5ec commit 07f16e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notice-slack.js
Expand Up @@ -61,7 +61,7 @@ async function slack_send_notice(webhook, json_payload) {
return await p;
}

zeek.hook('Notice::policy', (notice) => {
zeek.hook('Notice::notice', (notice) => {
if ( notice.actions.includes('Notice::ACTION_SLACK') ) {
slack_send_notice(slack_webhook_url, slack_json_payload(notice, slack_channel, slack_username, slack_emoji)).catch((error) => {
console.error(error);
Expand Down

0 comments on commit 07f16e1

Please sign in to comment.