]> dxcluster.org Git - spider.git/commitdiff
force nodes to *be* nodes on PC19
authorminima <minima>
Wed, 28 Jul 2004 18:05:29 +0000 (18:05 +0000)
committerminima <minima>
Wed, 28 Jul 2004 18:05:29 +0000 (18:05 +0000)
perl/DXProt.pm

index 8903f12195fcb539107345b5bbc584ac19ae3382..7278bd7bd73e2979c7ec56a12efe71cd67a83304 100644 (file)
@@ -949,13 +949,13 @@ sub handle_19
                        my $user = DXUser->get_current($origin);
                        if (!$user) {
                                $user = DXUser->new($origin);
-                               $user->sort('S');
                                $user->priv(1);         # I have relented and defaulted nodes
                                $user->lockout(1);
                                $user->homenode($origin);
                                $user->node($origin);
                                $user->wantroutepc19(1);
                        }
+                       $user->sort('A') unless $user->is_node;
                        $user->put;
                }
                $parent = $op;
@@ -988,12 +988,12 @@ sub handle_19
                my $user = DXUser->get_current($call);
                if (!$user) {
                        $user = DXUser->new($call);
-                       $user->sort('A');
                        $user->priv(1);         # I have relented and defaulted nodes
                        $user->lockout(1);
                        $user->homenode($call);
                        $user->node($call);
                }
+               $user->sort('A') unless $user->is_node;
 
                # do we believe this call?
                my $genline = "PC19^$here^$call^$conf^$ver^$_[-1]^"; 
@@ -1007,6 +1007,7 @@ sub handle_19
                        } else {
                                dbg("PCPROT: We don't believe $call on $self->{call}");
                        }
+                       $user->put;
                        next;
                }