X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FThingy%2FHello.pm;h=aa51de1c539ba7fce04fbf08b2d70e0605e1e047;hb=4461c555c086c35adc0f458ffbe3e6a03cfc68a1;hp=97abd14e58ba2dc9c78d5a35cffdf74705bf861b;hpb=27b6e9691f9985830388bbb8fc0a04357fa4f11f;p=spider.git diff --git a/perl/Thingy/Hello.pm b/perl/Thingy/Hello.pm index 97abd14e..aa51de1c 100644 --- a/perl/Thingy/Hello.pm +++ b/perl/Thingy/Hello.pm @@ -114,14 +114,14 @@ sub handle my $ur = Route::get($user); unless ($ur) { my @ref; - my $uref = DXUser->get_current($user) || Thingy::Hello::_upd_user_rec($user, $origin)->put; + my $uref = DXUser->get_current($user) || Thingy::Rt::_upd_user_rec($user, $origin)->put; if ($uref->is_node || $uref->is_aranea) { - push @ref, $nref->add($user, $thing->{v}, $thing->{h}); + push @ref, $nref->add($user, $thing->{v} || 0, $thing->{h} || 0); push @{$thing->{pc19n}}, @ref if @ref; do $_->np(1) for @ref; } else { $thing->{pc16n} = $nref; - push @ref, $nref->add_user($user, $thing->{h}); + push @ref, $nref->add_user($user, $thing->{h} || 0); $thing->{pc16u} = \@ref if @ref; } }