X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fhere.pl;h=7311b5e84e546090f2eec6a475abfbf1d585f346;hb=0824a94355e5fb2b4c379bb013d66466725629f5;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=6b6a8002929017b6d4217f68fa492a2d728ee1fe;p=spider.git diff --git a/cmd/unset/here.pl b/cmd/unset/here.pl index e69de29b..7311b5e8 100644 --- a/cmd/unset/here.pl +++ b/cmd/unset/here.pl @@ -0,0 +1,27 @@ +# +# unset 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 $ref = DXCluster->get($call); + if ($ref) { + $ref->here(0); + DXProt::broadcast_ak1a(DXProt::pc24($ref)); + push @out, DXM::msg('hereu', $call); + } else { + push @out, DXM::msg('e3', "Unset Here", $call); + } +} +return (1, @out);