mark calls like DR4W-HB as invalid
[spider.git] / perl / RBN.pm
index 8e981fc2f908690db5f6cb539c0fa06fe07b3c7f..1fc50bd0e7d8af6d1aa5e7c4193198aa728aa3fd 100644 (file)
@@ -252,11 +252,12 @@ sub normal
        }
 
        # remove all extraneous crap from the origin - just leave the base callsign
-       $origin = basecall($origin);
-       unless ($origin) {
+       my $norigin = basecall($origin);
+       unless ($norigin) {
                dbg("RBN: ERROR '$origin' is an invalid callsign, dumped");
                return;
        }
+       $origin = $norigin;
 
        # is this callsign in badspotter list?
        if ($DXProt::badspotter->in($origin) || $DXProt::badnode->in($origin)) {