4 # Copyright (c) 1998 Dirk Koopman G1TLH
19 my $line = uc shift; # only one callsign allowed
20 my ($call) = $line =~ /^\s*(\S+)/;
24 if ($self->{priv} < 1) {
26 return (1, "PONG $call");
28 ++$counter, return (1, "PONG $counter")
32 return (1, $self->msg('e6')) if !$call;
35 return (1, $self->msg('pinge1')) if $call eq $main::mycall;
37 # can we see it? Is it a node?
38 my $noderef = Route::Node::get($call);
40 return (1, $self->msg('e7', $call)) unless $noderef;
43 DXXml::Ping::add($self, $call);
45 return (1, $self->msg('pingo', $call));