2 # set ping interval for this node
4 # Copyright (c) 1998 - Dirk Koopman
9 my ($self, $line) = @_;
10 my @args = split /\s+/, $line;
14 my $val = int shift @args if @args;
17 return (1, $self->msg('e5')) if $self->priv < 9;
18 return (1, $self->msg('e14')) unless defined $val;
19 return (1, $self->msg('e12')) unless @args;
21 $val *= 60 if $val < 120;
23 foreach $call (@args) {
25 my $dxchan = DXChannel->get($call);
26 $user = $dxchan->user if $dxchan;
27 $user = DXUser->get($call) unless $user;
29 unless ($user->sort eq 'A' || $user->sort eq 'S') {
30 push @out, $self->msg('e13', $call);
35 $dxchan->pingint($val);
39 push @out, $self->msg('pingint', $call, $val);
41 push @out, $self->msg('e3', "Set/Pinginterval", $call);