X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FThingy%2FHello.pm;h=97abd14e58ba2dc9c78d5a35cffdf74705bf861b;hb=2a8f549affc5911a19a9c9559cf63be3081c6398;hp=cd31842fd51b3555227ababf540c4c5280d7aa8e;hpb=320d95463f2d936e627e485702949c9cee704d0b;p=spider.git diff --git a/perl/Thingy/Hello.pm b/perl/Thingy/Hello.pm index cd31842f..97abd14e 100644 --- a/perl/Thingy/Hello.pm +++ b/perl/Thingy/Hello.pm @@ -90,7 +90,7 @@ sub handle $thing->send($dxchan); # broadcast our configuration to the world - $thing = Thingy::Rt->new_lcf; + $thing = Thingy::Rt->new_cf; $thing->broadcast; } } @@ -118,14 +118,13 @@ sub handle if ($uref->is_node || $uref->is_aranea) { push @ref, $nref->add($user, $thing->{v}, $thing->{h}); push @{$thing->{pc19n}}, @ref if @ref; + do $_->np(1) for @ref; } else { $thing->{pc16n} = $nref; push @ref, $nref->add_user($user, $thing->{h}); $thing->{pc16u} = \@ref if @ref; } - $ur = Route::get($user); } - $ur->np(1); } else { $nref->version($thing->{v}) unless $nref->version; $nref->build($thing->{b}) unless $nref->build;