added announce
[spider.git] / cmd / set / here.pl
1 #
2 # set the here flag
3 #
4 # Copyright (c) 1998 - Dirk Koopman
5 #
6 # $Id$
7 #
8
9 my ($self, $line) = @_;
10 my @args = split /\s+/, $line;
11 my $call;
12 my @out;
13
14 @args = $self->call if (!@args || $self->priv < 9);
15
16 foreach $call (@args) {
17   $call = uc $call;
18   my $ref = DXCluster->get($call);
19   if ($ref) {
20     $ref->here(1);
21         DXProt::broadcast_ak1a(DXProt::pc24($ref));
22         push @out, DXM::msg('heres', $call);
23   } else {
24     push @out, DXM::msg('e3', "Set Here", $call);
25   }
26 }
27
28 return (1, @out);