1998-06-20 23:32:43 +00:00
|
|
|
#
|
|
|
|
# set the here flag
|
|
|
|
#
|
|
|
|
# Copyright (c) 1998 - Dirk Koopman
|
|
|
|
#
|
2007-07-11 15:41:51 +00:00
|
|
|
#
|
1998-06-20 23:32:43 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
my ($self, $line) = @_;
|
|
|
|
my @args = split /\s+/, $line;
|
|
|
|
my $call;
|
|
|
|
my @out;
|
|
|
|
|
|
|
|
@args = $self->call if (!@args || $self->priv < 9);
|
|
|
|
|
|
|
|
foreach $call (@args) {
|
2001-08-08 15:56:49 +00:00
|
|
|
$call = uc $call;
|
2005-03-12 23:33:31 +00:00
|
|
|
my $dxchan = DXChannel::get($call);
|
2001-08-08 15:56:49 +00:00
|
|
|
if ($dxchan) {
|
|
|
|
$dxchan->here(1);
|
|
|
|
push @out, $self->msg('heres', $call);
|
|
|
|
my $ref = Route::User::get($call);
|
|
|
|
$ref = Route::Node::get($call) unless $ref;
|
|
|
|
if ($ref) {
|
|
|
|
$ref->here(1);
|
|
|
|
my $s = DXProt::pc24($ref);
|
|
|
|
DXProt::eph_dup($s);
|
2001-09-20 14:13:11 +00:00
|
|
|
DXChannel::broadcast_all_nodes($s, $main::me) ;
|
2001-08-08 15:56:49 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
push @out, $self->msg('e3', "Set Here", $call);
|
|
|
|
}
|
1998-06-20 23:32:43 +00:00
|
|
|
}
|
1998-09-28 15:32:01 +00:00
|
|
|
|
1998-06-20 23:32:43 +00:00
|
|
|
return (1, @out);
|