Fixed a problem with sending notice emails I introduced earlier.

This commit is contained in:
Seth Hall 2011-10-21 22:41:43 -04:00
parent d96bb4216f
commit 74240610c5

View file

@ -359,11 +359,11 @@ function email_notice_to(n: Notice::Info, dest: string, extend: bool)
# Add information about the connection if it exists. # Add information about the connection if it exists.
if ( n?$id ) if ( n?$id )
email_text = cat(email_text, "Connection: ", email_text = string_cat(email_text, "Connection: ",
n$id$orig_h, ":", n$id$orig_p, " -> ", fmt("%s", n$id$orig_h), ":", fmt("%d", n$id$orig_p), " -> ",
n$id$resp_h, ":", n$id$resp_p, "\n"); fmt("%s", n$id$resp_h), ":", fmt("%d", n$id$resp_p), "\n");
else if ( n?$src ) else if ( n?$src )
email_text = cat(email_text, "Address: ", n$src, "\n"); email_text = string_cat(email_text, "Address: ", fmt("%s", n$src), "\n");
# Add the extended information if it's requested. # Add the extended information if it's requested.
if ( extend ) if ( extend )