prevent blank spot calls in PC11
[spider.git] / perl / DXProt.pm
index a7ef556201d09a3dae888c1442e3d50f3d4aa415..7f30ae62acd446da059cc45283cfe8e6af00bdfe 100644 (file)
@@ -82,7 +82,7 @@ $pc19_version = 5466;                 # the visible version no for outgoing PC19s generated fr
 @checklist = 
 (
  [ qw(i c c m bp bc c) ],                      # pc10
- [ qw(i f m d t m c c h) ],            # pc11
+ [ qw(i f bm d t m c c h) ],           # pc11
  [ qw(i c bm m bm bm p h) ],           # pc12
  [ qw(i c h) ],                                        # 
  [ qw(i c h) ],                                        # 
@@ -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);