]> dxcluster.org Git - spider.git/commitdiff
ignore empty PC16s
authorminima <minima>
Sun, 19 Jan 2003 02:42:05 +0000 (02:42 +0000)
committerminima <minima>
Sun, 19 Jan 2003 02:42:05 +0000 (02:42 +0000)
perl/DXProt.pm

index 3ef7b0750e3695a878f11da518d3ae10ba6ca930..118743e1f23ff03e5da83279c3c90ba8086b90ef 100644 (file)
@@ -645,7 +645,11 @@ sub normal
                        # if there is a parent, proceed, otherwise if there is a latent PC19 in the PC19list, 
                        # fix it up in the routing tables and issue it forth before the PC16
                        unless ($parent) {
-                               if (my ($nl = $pc19list{$ncall}) && @field > 2) {
+                               my $nl = $pc19list{$ncall};
+
+                               delete $pc19list{$ncall} if $nl;             # whatever happens - it goes 
+                                       
+                               if ($nl && @field > 3) {                     # 3 because of the hop count!
 
                                        # this is a new (remembered) node, now attach it to me if it isn't in filtered
                                        # and we haven't disallowed it
@@ -659,8 +663,6 @@ sub normal
                                                $user->node($ncall);
                                        }
 
-                                       delete $pc19list{$ncall};             # whatever happens - it goes 
-                                       
                                        my $wantpc19 = $user->wantroutepc19;
                                        if ($wantpc19 || !defined $wantpc19) {
                                                my $new = Route->new($ncall);          # throw away