X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdx.pl;h=1d09a4769f489744b4c31192c47a8554952203a8;hb=c77ea09e91a5f7c3052e3e30dfb48fcaad1e0dcd;hp=0b2ece1d6b250cd0808f05205c455ed2967520f5;hpb=0ab700a4725f5fedc0ad119f8ffd1d66cd02e26f;p=spider.git diff --git a/cmd/dx.pl b/cmd/dx.pl index 0b2ece1d..1d09a476 100644 --- a/cmd/dx.pl +++ b/cmd/dx.pl @@ -17,6 +17,12 @@ my @out; my $valid = 0; return (1, $self->msg('e5')) if $self->remotecmd; +my @bad; +if (@bad = BadWords::check($line)) { + $self->badcount(($self->badcount||0) + @bad); + return (1, $self->msg('e17', @bad)); +} + # do we have at least two args? return (1, $self->msg('dx2')) unless @f >= 2; @@ -93,11 +99,6 @@ if ($spotted le ' ') { return (1, @out) unless $valid; -my @bad; -if (@bad = BadWords::check($line)) { - $self->badcount(($self->badcount||0) + @bad); - return (1, $self->msg('e17', @bad)); -} # Store it here (but only if it isn't baddx) if ($DXProt::baddx->in($spotted)) {