fix problems with users on more than one node
[spider.git] / perl / DXProt.pm
index fb6ba02a66dc8e1a805f7e23ecfdd68706e692a6..460e401a0099b6a9b7f7cc711ffbf33e1116d4c8 100644 (file)
@@ -559,10 +559,13 @@ sub normal
                                my $r = Route::User::get($call);
                                my $flags = Route::here($here)|Route::conf($conf);
                                
-                               if ($r && $r->flags != $flags) {
-                                       $r->flags($flags);
-                                       push @rout, $r;
-                               } elsif (!$r) {
+                               if ($r) {
+                                       if ($r->flags != $flags) {
+                                               $r->flags($flags);
+                                               push @rout, $r;
+                                       }
+                                       $r->addparent($ncall);
+                               } else {
                                        push @rout, $parent->add_user($call, $flags);
                                }