fix duplication of WWV spots
[spider.git] / perl / DXProt.pm
index a7ef556201d09a3dae888c1442e3d50f3d4aa415..981d5d860605ff02206b78856e3b7334fbee01ad 100644 (file)
@@ -1244,11 +1244,11 @@ sub handle_23
                        return;
                }
        }
+       $_[7] =~ s/-\d+$//o;            # remove spotter's ssid
        if (Geomag::dup($d,$sfi,$k,$i,$_[6],$_[7])) {
                dbg("PCPROT: Dup WWV Spot ignored\n") if isdbg('chanerr');
                return;
        }
-       $_[7] =~ s/-\d+$//o;            # remove spotter's ssid
                
        # note this only takes the first one it gets
        Geomag::update($d, $_[2], $sfi, $k, $i, @_[6..8], $r);