]> www.dxcluster.org Git - spider.git/blob - cmd/set/routepc19.pl
6b5364bd8a19b5f6a3d51ac8ecd8dfe1c5492b7f
[spider.git] / cmd / set / routepc19.pl
1 #
2 # set the want to send PC19 route flag
3 #
4 # Copyright (c) 2002 - Dirk Koopman
5 #
6 # $Id$
7 #
8
9 my ($self, $line) = @_;
10 my @args = split /\s+/, uc $line;
11 my $call;
12 my @out;
13
14 return (1, $self->msg('e5')) if $self->priv < 9;
15
16 foreach $call (@args) {
17         return (1, $self->msg('e12')) unless is_callsign($call);
18
19         my $user = DXUser->get_current($call);
20         if ($user) {
21                 $user->wantroutepc19(1);
22                 $user->put;
23                 push @out, $self->msg('wpc19s', $call);
24         } else {
25                 push @out, $self->msg('e3', "set/wantroutepc19", $call);
26         }
27 }
28 return (1, @out);