The hostname notice email extension now only add hostnames for emailed noticed.

This commit is contained in:
Seth Hall 2011-08-06 00:33:58 -04:00
parent cdfaff7fab
commit 048369fbeb

View file

@ -7,6 +7,10 @@ event Notice::notice(n: Notice::Info) &priority=10
if ( ! n?$src && ! n?$dst )
return;
# This should only be done for notices that are being sent to email.
if ( ACTION_EMAIL !in n$action )
return;
local output = "";
if ( n?$src )
{