X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FRBN.pm;h=0cf5c4149c4940c979280ca28eea537a89be7477;hb=4d8e254ea4c77a348c96c24fdbc265590c75fd5c;hp=8c2fbaadc5911079367118faac7a1c71ac4987e6;hpb=743a03b3b060fbff8579503647a01722fb634cb1;p=spider.git diff --git a/perl/RBN.pm b/perl/RBN.pm index 8c2fbaad..0cf5c414 100644 --- a/perl/RBN.pm +++ b/perl/RBN.pm @@ -251,8 +251,20 @@ sub normal return; } - $origin =~ s/\-(?:\d{1,2}\-)?\#$//; # get rid of all the crap we aren't interested in + # remove all extraneous crap from the origin - just leave the base callsign + $origin =~ s|^(?:[\w\d]+/)?([\w\d]+).*$|$1|; + # is this callsign in badspotter list? + if ($DXProt::badspotter->in($origin) || $DXProt::badnode->in($origin)) { + dbg("RBN: ERROR $origin is a bad spotter/node, dumped"); + return; + } + + # is the qrg valid + unless ($qrg =~ /^\d+\.\d{1,2}$/) { + dbg("RBN: ERROR qrg $qrg from $origin invalid, dumped"); + return; + } $sort ||= ''; $tx ||= '';