X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdx.pl;h=0b2ece1d6b250cd0808f05205c455ed2967520f5;hb=f52bf428cfd46825c2e2fcd3a0ba55097bbe7bd6;hp=85dc4cf91f47aba2df092596b78eca31b2d218f5;hpb=dbc63738d8b497c03bfb81c84e61161bb5c7931a;p=spider.git diff --git a/cmd/dx.pl b/cmd/dx.pl index 85dc4cf9..0b2ece1d 100644 --- a/cmd/dx.pl +++ b/cmd/dx.pl @@ -94,12 +94,13 @@ if ($spotted le ' ') { return (1, @out) unless $valid; my @bad; -if (@bad = BadWords::check($line)) { +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 (grep $_ eq $spotted, @DXProt::baddx) { +if ($DXProt::baddx->in($spotted)) { my $buf = Spot::formatb($self->user->wantgrid, $freq, $spotted, $main::systime, $line, $spotter); push @out, $buf; } else {