X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fhere.pl;h=1c4b167cb0bc942837b268bdb6ad4a1563a513f9;hb=50f6466ca2dff82ca470a4abe327d741cffef61a;hp=b89d47d779c520642a6b5741f6a3de2c4246d68d;hpb=1cf4bd14be226274d5deb05da8480ab91a5dac52;p=spider.git diff --git a/cmd/set/here.pl b/cmd/set/here.pl index b89d47d7..1c4b167c 100644 --- a/cmd/set/here.pl +++ b/cmd/set/here.pl @@ -14,13 +14,22 @@ my @out; @args = $self->call if (!@args || $self->priv < 9); foreach $call (@args) { - $call = uc $call; - my $chan = DXChannel->get($call); - if ($chan) { - $chan->here(1); - push @out, DXM::msg('heres', $call); - } else { - push @out, DXM::msg('e3', "Set Here", $call); - } + $call = uc $call; + my $dxchan = DXChannel->get($call); + if ($dxchan) { + $dxchan->here(1); + push @out, $self->msg('heres', $call); + my $ref = Route::User::get($call); + $ref = Route::Node::get($call) unless $ref; + if ($ref) { + $ref->here(1); + my $s = DXProt::pc24($ref); + DXProt::eph_dup($s); + DXChannel::broadcast_all_nodes($s, $main::me) ; + } + } else { + push @out, $self->msg('e3', "Set Here", $call); + } } + return (1, @out);