X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXXml%2FPing.pm;h=6088a4628b92756d946bfe4eac2c8398e2592974;hb=04f1823a3dc3f20b6bbcaeee89b3b09e26d91f6d;hp=29d7ab1c6a89ac7b1d99f92a7b627b6fcf82bed8;hpb=0e5d48bce6d4ab1119f1375a6a57af188947ceff;p=spider.git diff --git a/perl/DXXml/Ping.pm b/perl/DXXml/Ping.pm index 29d7ab1c..6088a462 100644 --- a/perl/DXXml/Ping.pm +++ b/perl/DXXml/Ping.pm @@ -68,10 +68,10 @@ sub add push @$ref, $self; $pings{$to} = $ref; - my $u = DXUser->get_current($to); + my $u = DXUser::get_current($to); if ($u) { $u->lastping(($via || $from), $main::systime); - $u->put; + $u->put unless $dxchan->{_nospawn}; } } @@ -136,11 +136,12 @@ sub handle_ping_reply sub _handle_believe { my ($from, $via) = @_; - - my $user = DXUser->get_current($from); + + my $dxchan = DXChannel::get($from); + my $user = $dxchan->user || DXUser::get($from); if ($user) { $user->set_believe($via); - $user->put; + $user->put unless $dxchan->{_nospawn}; } } 1;