From d80a347afe0cfbad46b0b3bd5a3139a5c2e2d78c Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Fri, 4 May 2012 14:17:43 -0400 Subject: [PATCH] SMTP.pm, add missing ; and remove useless if --- lib/Qpsmtpd/SMTP.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/Qpsmtpd/SMTP.pm b/lib/Qpsmtpd/SMTP.pm index bcd9144..5394646 100644 --- a/lib/Qpsmtpd/SMTP.pm +++ b/lib/Qpsmtpd/SMTP.pm @@ -54,18 +54,14 @@ sub dispatch { if ($cmd !~ /^(\w{1,12})$/ or !exists $self->{_commands}->{$1}) { $self->run_hooks("unrecognized_command", $cmd, @_); - return 1 + return 1; } $cmd = $1; - if (1 or $self->{_commands}->{$cmd} and $self->can($cmd)) { my ($result) = eval { $self->$cmd(@_) }; $self->log(LOGERROR, "XX: $@") if $@; return $result if defined $result; return $self->fault("command '$cmd' failed unexpectedly"); - } - - return; } sub unrecognized_command_respond {