[svn:qpsmtpd] rev 487 - trunk/plugins

[email protected] 8 Jul 2005 13:06:15 -0000
Newsgroups perl.cvs.qpsmtpd
Message-ID <[email protected]>
Author: msergeant
Date: Fri Jul  8 06:06:15 2005
New Revision: 487

Modified:
   trunk/plugins/greylisting
Log:
Don't use exists() on a method call.


Modified: trunk/plugins/greylisting
==============================================================================
--- trunk/plugins/greylisting	(original)
+++ trunk/plugins/greylisting	Fri Jul  8 06:06:15 2005
@@ -184,7 +184,7 @@ sub denysoft_greylist {
   $self->log(LOGDEBUG, "config: " . join(',',map { $_ . '=' . $config->{$_} } sort keys %$config));
 
   # Always allow relayclients and whitelisted hosts/senders
-  return DECLINED if exists $self->qp->connection->relay_client();
+  return DECLINED if $self->qp->connection->relay_client();
   return DECLINED if $self->qp->connection->notes('whitelisthost');
   return DECLINED if $transaction->notes('whitelistsender');