mirror of
git://scm.dxcluster.org/scm/spider
synced 2024-09-21 15:57:12 +00:00
64b4171276
as well.
31 lines
573 B
Perl
31 lines
573 B
Perl
#
|
|
# 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);
|