check for lower case callsigns in spots
authordjk <djk>
Tue, 24 Aug 1999 22:01:48 +0000 (22:01 +0000)
committerdjk <djk>
Tue, 24 Aug 1999 22:01:48 +0000 (22:01 +0000)
perl/DXProt.pm

index 7d429b1b7c3aa74375294b23169721742863f2c6..ebc23561dae10ac0c7cf4760836870b96b01cbd9 100644 (file)
@@ -226,6 +226,12 @@ sub normal
                                dbg('chan', "Bad DX spot, ignored");
                                return;
                        }
+
+                       # are any of the crucial fields invalid?
+            if ($field[2] =~ /[a-z]/ || $field[6] =~ /[a-z]/ || $field[7] =~ /[a-z]/) {
+                               dbg('chan', "Spot contains lower case callsigns, rejected");
+                               return;
+                       }
                        
                        my @spot = Spot::add($freq, $field[2], $d, $text, $spotter, $field[7]);