X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fannounce.pl;h=6bad4af39449d256c7c023751e9c803181dc8c8b;hb=17b961e3ee4a9f2d0ff2cc7f5b0e8546816f9f64;hp=9a1cbd376b2dcc13700351e14774867b939878e7;hpb=cbf3c0cd90df4c4df05dae6a00d03f7f9482d631;p=spider.git diff --git a/cmd/announce.pl b/cmd/announce.pl index 9a1cbd37..6bad4af3 100644 --- a/cmd/announce.pl +++ b/cmd/announce.pl @@ -48,10 +48,24 @@ if ($sort eq "FULL") { # change ^ into : for transmission $line =~ s/\^/:/og; +# if this is a 'bad spotter' user then ignore it +my $nossid = $from; +my $drop = 0; +$nossid =~ s/-\d+$//; +if ($DXProt::badspotter->in($nossid)) { + LogDbg('DXCommand', "bad spotter ($from) made announcement: $line"); + $drop++; +} + +# have they sworn? my @bad; if (@bad = BadWords::check($line)) { $self->badcount(($self->badcount||0) + @bad); LogDbg('DXCommand', "$self->{call} swore: $line (with words:" . join(',', @bad) . ")"); + $drop++; +} + +if ($drop) { Log('ann', $to, $from, "[to $from only] $line"); $self->send("To $to de $from <$t>: $line"); return (1, ());