mirror of
git://scm.dxcluster.org/scm/spider
synced 2024-09-21 15:57:12 +00:00
36 lines
665 B
Perl
36 lines
665 B
Perl
#
|
|
# unset the here flag
|
|
#
|
|
# Copyright (c) 1998 - Dirk Koopman
|
|
#
|
|
#
|
|
#
|
|
|
|
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);
|
|
if ($dxchan) {
|
|
$dxchan->here(0);
|
|
push @out, $self->msg('hereu', $call);
|
|
my $ref = Route::User::get($call);
|
|
$ref = Route::Node::get($call) unless $ref;
|
|
if ($ref) {
|
|
$ref->here(0);
|
|
my $s = DXProt::pc24($ref);
|
|
DXProt::eph_dup($s);
|
|
DXChannel::broadcast_all_nodes($s, $main::me) ;
|
|
}
|
|
} else {
|
|
push @out, $self->msg('e3', "Unset Here", $call);
|
|
}
|
|
}
|
|
|
|
return (1, @out);
|