From: minima Date: Thu, 24 Feb 2005 19:54:15 +0000 (+0000) Subject: do it properly! X-Git-Tag: R_1_52~132 X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=2f4dc5347389ce78ae58567c0c23d09342c65fcd;p=spider.git do it properly! --- diff --git a/perl/Thingy/Rt.pm b/perl/Thingy/Rt.pm index 8ba7ee00..86c26ea8 100644 --- a/perl/Thingy/Rt.pm +++ b/perl/Thingy/Rt.pm @@ -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.