Pass args to unrecognized_command
git-svn-id: https://svn.perl.org/qpsmtpd/branches/0.31@494 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
8a3c3c40b0
commit
8c018d75ac
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user