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 $user = DXUser->get_current($call);
27 unless ($user->sort eq 'A' || $user->sort eq 'S') {
28 push @out, $self->msg('e13', $call);
33 $dxchan->pingint($val);
37 push @out, $self->msg('pingint', $call, $val);
39 push @out, $self->msg('e3', "Set/Pinginterval", $call);