Fixup priorities

This commit is contained in:
Vlad Grigorescu 2021-04-26 21:46:18 -05:00
parent f8b06becd2
commit 6d0f48abfc
3 changed files with 7 additions and 4 deletions

View file

@ -13,7 +13,8 @@ module Notice;
# reference to the original notice)
global tmp_notice_storage: table[string] of Notice::Info &create_expire=max_email_delay+10secs;
hook notice(n: Notice::Info) &priority=-10
# Run after e-mail address is set, but before e-mail is sent.
hook notice(n: Notice::Info) &priority=0
{
if ( ! n?$src && ! n?$dst )
return;