do it properly!
authorminima <minima>
Thu, 24 Feb 2005 19:54:15 +0000 (19:54 +0000)
committerminima <minima>
Thu, 24 Feb 2005 19:54:15 +0000 (19:54 +0000)
perl/Thingy/Rt.pm

index 8ba7ee00aac373c70ed8d0f2a0df8499bc3f78d0..86c26ea8d487731e740b8d70808089bf4a113c21 100644 (file)
@@ -98,7 +98,9 @@ sub handle_cf
        if ($thing->{user}) {
                $origin = $thing->{user};
                my $ref = Route::Node::get($origin);
-               unless ($ref) {
+               if ($ref) {
+                       $parent = $ref;
+               } else {
                        # auto vivify a node that has come that we don't know about
                        push @pc19, $parent->add($origin, 0, 1);
                        $parent = Route::Node::get($origin); # reparent to me now.