From 8c018d75ac735a22e04dca50d0816a4852116565 Mon Sep 17 00:00:00 2001 From: Matt Sergeant Date: Mon, 11 Jul 2005 12:24:26 +0000 Subject: [PATCH] Pass args to unrecognized_command git-svn-id: https://svn.perl.org/qpsmtpd/branches/0.31@494 958fd67b-6ff1-0310-b445-bb7760255be9 --- lib/Qpsmtpd/SMTP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Qpsmtpd/SMTP.pm b/lib/Qpsmtpd/SMTP.pm index b352f9e..6af0251 100644 --- a/lib/Qpsmtpd/SMTP.pm +++ b/lib/Qpsmtpd/SMTP.pm @@ -51,7 +51,7 @@ sub dispatch { $self->{_counter}++; if ($cmd !~ /^(\w{1,12})$/ or !exists $self->{_commands}->{$1}) { - my ($rc, $msg) = $self->run_hooks("unrecognized_command", $cmd); + my ($rc, $msg) = $self->run_hooks("unrecognized_command", $cmd, @_); if ($rc == DENY_DISCONNECT) { $self->respond(521, $msg); $self->disconnect;