X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fhere.pl;h=114533efa87b8b011d54efc33b992c7e12e704be;hb=2bd682330ce9b04c95ddf05715cfb643da2df0ea;hp=aad69d022d657233fddbc6d7fee97d4e5f42655a;hpb=0824a94355e5fb2b4c379bb013d66466725629f5;p=spider.git diff --git a/cmd/set/here.pl b/cmd/set/here.pl index aad69d02..114533ef 100644 --- a/cmd/set/here.pl +++ b/cmd/set/here.pl @@ -15,13 +15,15 @@ my @out; foreach $call (@args) { $call = uc $call; - my $ref = DXCluster->get($call); - if ($ref) { - $ref->here(1); - DXProt::broadcast_ak1a(DXProt::pc24($ref)); - push @out, DXM::msg('heres', $call); + my $dxchan = DXChannel->get($call); + my $ref = DXCluster->get_exact($call); + if ($dxchan && $ref) { + $dxchan->here(1); + $ref->here(1); + DXProt::broadcast_all_ak1a(DXProt::pc24($ref), $DXProt::me); + push @out, $self->msg('heres', $call); } else { - push @out, DXM::msg('e3', "Set Here", $call); + push @out, $self->msg('e3', "Set Here", $call); } }