cvs commit: qpsmtpd/plugins count_unrecognized_commands
[email protected] (Ask "Bj?rn" Hansen)
| Newsgroups | perl.cvs.qpsmtpd |
|---|---|
| Message-ID | <[email protected]> |
cvsuser 04/07/28 10:06:45
Modified: . Changes
plugins count_unrecognized_commands
Log:
Fix warning in count_unrecognized_commands plugin (thanks to spaze
and Roger Walker)
Revision Changes Path
1.72 +3 -0 qpsmtpd/Changes
Index: Changes
===================================================================
RCS file: /cvs/public/qpsmtpd/Changes,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -w -r1.71 -r1.72
--- Changes 19 Jul 2004 11:08:15 -0000 1.71
+++ Changes 28 Jul 2004 17:06:45 -0000 1.72
@@ -2,6 +2,9 @@
[ many changes from cvs logs, gah ]
+ Fix warning in count_unrecognized_commands plugin (thanks to spaze
+ and Roger Walker)
+
Improve error messages from the Postfix module (Erik I. Bolsø,
<knan at mo.himolde.no>)
1.4 +1 -1 qpsmtpd/plugins/count_unrecognized_commands
Index: count_unrecognized_commands
===================================================================
RCS file: /cvs/public/qpsmtpd/plugins/count_unrecognized_commands,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -r1.3 -r1.4
--- count_unrecognized_commands 5 Mar 2004 12:46:24 -0000 1.3
+++ count_unrecognized_commands 28 Jul 2004 17:06:45 -0000 1.4
@@ -36,7 +36,7 @@
my $badcmdcount =
$self->qp->connection->notes('unrec_cmd_count',
- $self->qp->connection->notes('unrec_cmd_count') + 1
+ ($self->qp->connection->notes('unrec_cmd_count') || 0) + 1
);
if ($badcmdcount >= $self->{_unrec_cmd_max}) {