diff --git a/lib/Qpsmtpd.pm b/lib/Qpsmtpd.pm index ed826f6..d0921f6 100644 --- a/lib/Qpsmtpd.pm +++ b/lib/Qpsmtpd.pm @@ -243,7 +243,7 @@ sub run_hooks { } else { my $cnotes = $self->connection->notes( $code->{name} ); $cnotes->{"hook_$hook"}->{'return'} = $r[0] - if (!defined $cnotes || $cnotes eq "HASH"); + if (!defined $cnotes || ref $cnotes eq "HASH"); } # should we have a hook for "OK" too?