diff --git a/plugins/check_earlytalker b/plugins/check_earlytalker index df4eab4..c356dc5 100644 --- a/plugins/check_earlytalker +++ b/plugins/check_earlytalker @@ -59,7 +59,7 @@ sub register { 'defer-reject' => 0, @args, }; - if ($qp->{conn} && $qp->{conn}->isa('Apache2::Connection')) { + if ($qp->isa('Qpsmtpd::Apache')) { require APR::Const; APR::Const->import(qw(POLLIN SUCCESS)); $self->register_hook('connect', 'hook_connect_apr');