spider/cmd/set/routepc19.pl

29 lines
526 B
Perl

#
# set the want to send PC19 route flag
#
# Copyright (c) 2002 - Dirk Koopman
#
#
#
my ($self, $line) = @_;
my @args = split /\s+/, uc $line;
my $call;
my @out;
return (1, $self->msg('e5')) if $self->priv < 9;
foreach $call (@args) {
return (1, $self->msg('e12')) unless is_callsign($call);
my $user = DXUser->get_current($call);
if ($user) {
$user->wantroutepc19(1);
$user->put;
push @out, $self->msg('wpc19s', $call);
} else {
push @out, $self->msg('e3', "set/wantroutepc19", $call);
}
}
return (1, @out);