# can we see it? Is it a node?
my $noderef = DXCluster->get_exact($call);
+$noderef = DXChannel->get($call) unless $noderef;
+
return (1, $self->msg('e7', $call)) if !$noderef || !$noderef->pcversion;
# ping it
DXProt::addping($self->call, $call);
-return (1, $self->msg('pingo', $call, atime($main::systime)));
+return (1, $self->msg('pingo', $call));
# it's a reply, look in the ping list for this one
my $ref = $pings{$field[2]};
if ($ref) {
+ my $tochan = DXChannel->get($field[2]);
while (@$ref) {
my $r = shift @$ref;
my $dxchan = DXChannel->get($r->{call});
my $t = tv_interval($r->{t}, [ gettimeofday ]);
if ($dxchan->is_user) {
my $s = sprintf "%.2f", $t;
- $dxchan->send($dxchan->msg('pingi', $field[2], $s))
+ my $ave = $tochan->pingave if $tochan;
+ $dxchan->send($dxchan->msg('pingi', $field[2], $s, $ave))
} elsif ($dxchan->is_ak1a) {
- my $tochan = DXChannel->get($field[2]);
if ($tochan) {
$tochan->nopings(3); # pump up the timer
$tochan->{pingtime} += $t;
return _want('dx', @_);
}
+sub wanttalk
+{
+ return _want('talk', @_);
+}
+
1;
__END__
passerr => 'Please use: SET/PASS <password> <callsign>',
password => 'Password set or changed for $_[0]',
pingo => 'Ping Started to $_[0]',
- pingi => 'Ping Returned from $_[0] ($_[1] secs)',
+ pingi => 'Ping Returned from $_[0] $_[1] (Ave $_[2]) secs',
pr => '$_[0] de $main::mycall $main::cldate $main::ztime >',
pr2 => '($_[0]) de $main::mycall $main::cldate $main::ztime >',
priv => 'Privilege level changed on $_[0]',
passerr => 'Gebruik: SET/PASS <wachtwoord> <call>',
password => 'Wachtwoord gezet of gewijzigd voor $_[0]',
pingo => 'Ping gestart naar $_[0]',
- pingi => 'Ping ontvangen van $_[0] ($_[1] secs)',
+ pingi => 'Ping ontvangen van $_[0] $_[1] (Ave $_[2]) secs',
pr => '$_[0] de $main::mycall $main::cldate $main::ztime >',
pr2 => '($_[0]) de $main::mycall $main::cldate $main::ztime >',
priv => 'Privilege level gewijzigd op $_[0]',