Fix check for emailed notices

This bug was introduced in 9d0bd96
This commit is contained in:
Justin Azoff 2023-09-01 13:23:45 -04:00
parent 14a2c02f9d
commit 047232df37

View file

@ -20,7 +20,7 @@ hook notice(n: Notice::Info) &priority=-1
return; return;
# This should only be done for notices that are being sent to email. # This should only be done for notices that are being sent to email.
if ( ! n?$email_dest ) if ( |n$email_dest| == 0 )
return; return;
# I'm not recovering gracefully from the when statements because I want # I'm not recovering gracefully from the when statements because I want