4 Jun 2012 03:40
[PATCH] connection_time: make compatible with tcpserver deployment
Matt Simerson <matt <at> tnpi.net>
2012-06-04 01:40:10 GMT
2012-06-04 01:40:10 GMT
---
plugins/connection_time | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/plugins/connection_time b/plugins/connection_time
index bfac4d2..9cff7f9 100644
--- a/plugins/connection_time
+++ b/plugins/connection_time
<at> <at> -26,9 +26,10 <at> <at> Adjust the quantity of logging for this plugin. See docs/logging.pod
use strict;
use warnings;
-use Time::HiRes qw(gettimeofday tv_interval);
use Qpsmtpd::Constants;
+use Time::HiRes qw(gettimeofday tv_interval);
+
sub register {
my ($self, $qp) = shift, shift;
if ( <at> _ == 1 ) { # backwards compatible
<at> <at> -43,18 +44,27 <at> <at> sub register {
}
else {
$self->{_args} = { <at> _ }; # named args, inherits loglevel
- }
+ };
}
sub hook_pre_connection {
- my ($self, <at> foo) = <at> _;
(Continue reading)
)
Ask
RSS Feed