projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c4a169b
)
fix 'new hello'?
author
minima
<minima>
Tue, 22 Feb 2005 16:11:11 +0000
(16:11 +0000)
committer
minima
<minima>
Tue, 22 Feb 2005 16:11:11 +0000
(16:11 +0000)
perl/Route/Node.pm
patch
|
blob
|
history
perl/Thingy/Hello.pm
patch
|
blob
|
history
diff --git
a/perl/Route/Node.pm
b/perl/Route/Node.pm
index 2350f86f062dacbd0218e8f4a2c53f67a00df042..d46733bbcdf295e05aafd649e34262e688fd904a 100644
(file)
--- a/
perl/Route/Node.pm
+++ b/
perl/Route/Node.pm
@@
-141,10
+141,10
@@
sub add_user
my $uref = Route::User::get($ucall);
my @out;
if ($uref) {
my $uref = Route::User::get($ucall);
my @out;
if ($uref) {
-
@out =
$uref->addparent($self);
+
push @out,
$uref->addparent($self);
} else {
$uref = Route::User->new($ucall, $self->{call}, @_);
} else {
$uref = Route::User->new($ucall, $self->{call}, @_);
-
@out =
$uref;
+
push @out,
$uref;
}
$self->_adduser($uref);
$self->{usercount} = scalar @{$self->{users}};
}
$self->_adduser($uref);
$self->{usercount} = scalar @{$self->{users}};
diff --git
a/perl/Thingy/Hello.pm
b/perl/Thingy/Hello.pm
index 3eb72d61bd9eb937ff346f8ed49d8a0548fb566e..cd31842fd51b3555227ababf540c4c5280d7aa8e 100644
(file)
--- a/
perl/Thingy/Hello.pm
+++ b/
perl/Thingy/Hello.pm
@@
-113,15
+113,17
@@
sub handle
if (my $user = $thing->{user}) {
my $ur = Route::get($user);
unless ($ur) {
if (my $user = $thing->{user}) {
my $ur = Route::get($user);
unless ($ur) {
+ my @ref;
my $uref = DXUser->get_current($user) || Thingy::Hello::_upd_user_rec($user, $origin)->put;
if ($uref->is_node || $uref->is_aranea) {
my $uref = DXUser->get_current($user) || Thingy::Hello::_upd_user_rec($user, $origin)->put;
if ($uref->is_node || $uref->is_aranea) {
-
$ur =
$nref->add($user, $thing->{v}, $thing->{h});
- push @{$thing->{pc19n}},
$ur if $ur
;
+
push @ref,
$nref->add($user, $thing->{v}, $thing->{h});
+ push @{$thing->{pc19n}},
@ref if @ref
;
} else {
$thing->{pc16n} = $nref;
} else {
$thing->{pc16n} = $nref;
-
$ur =
$nref->add_user($user, $thing->{h});
- $thing->{pc16u} =
[$ur]
;
+
push @ref,
$nref->add_user($user, $thing->{h});
+ $thing->{pc16u} =
\@ref if @ref
;
}
}
+ $ur = Route::get($user);
}
$ur->np(1);
} else {
}
$ur->np(1);
} else {