X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fhere.pl;h=114533efa87b8b011d54efc33b992c7e12e704be;hb=5b5f8288506a85aaaafd11e0fdd17564f82d9c5f;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=6b6a8002929017b6d4217f68fa492a2d728ee1fe;p=spider.git diff --git a/cmd/set/here.pl b/cmd/set/here.pl index e69de29b..114533ef 100644 --- a/cmd/set/here.pl +++ b/cmd/set/here.pl @@ -0,0 +1,30 @@ +# +# set the here flag +# +# Copyright (c) 1998 - Dirk Koopman +# +# $Id$ +# + +my ($self, $line) = @_; +my @args = split /\s+/, $line; +my $call; +my @out; + +@args = $self->call if (!@args || $self->priv < 9); + +foreach $call (@args) { + $call = uc $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, $self->msg('e3', "Set Here", $call); + } +} + +return (1, @out);