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 = shift @args if @args;
17 return (1, $self->msg('e5')) if $self->priv < 8;
18 return (1, $self->msg('e25', 1, 9)) unless defined $val && $val =~ /^\d+$/ && $val >= 1 && $val <= 9;
19 return (1, $self->msg('e12')) unless @args;
21 foreach $call (@args) {
23 my $dxchan = DXChannel::get($call);
24 $user = $dxchan->user if $dxchan;
25 $user = DXUser->get_current($call);
27 unless ($user->is_node) {
28 push @out, $self->msg('e13', $call);
33 $dxchan->nopings($val);
37 push @out, $self->msg('obscount', $call, $val);
39 push @out, $self->msg('e3', "set/obscount", $call);