X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FRBN.pm;h=0b3dfe5a937dc245c9b67958476212a9610d7664;hb=a24cc09d8262093df92c767d3010c0a5fd6e42d7;hp=8c2fbaadc5911079367118faac7a1c71ac4987e6;hpb=2ca690592ea14e2ecd6783feed99ed7a8195162c;p=spider.git diff --git a/perl/RBN.pm b/perl/RBN.pm index 8c2fbaad..0b3dfe5a 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 = basecall($origin); + # 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 ||= '';