pings.
# send a ping out on this channel
if ($dxchan->{pingint} && $t >= $dxchan->{pingint} + $dxchan->{lastping}) {
-# if ($dxchan->{nopings} <= 0) {
-# $dxchan->disconnect;
-# } else {
+ if ($dxchan->{nopings} <= 0) {
+ $dxchan->disconnect;
+ } else {
addping($main::mycall, $dxchan->call);
$dxchan->{nopings} -= 1;
$dxchan->{lastping} = $t;
-# }
+ }
}
}
my $dd = new Data::Dumper([$thing]);
$dd->Indent(0);
$dd->Terse(1);
- $dd->Sortkeys(1);
+ #$dd->Sortkeys(1);
$dd->Quotekeys($] < 5.005 ? 1 : 0);
return $dd->Dumpxs;
}
} else {
# it's a reply, look in the ping list for this one
- my $ref = $ping{$thing->{id}} if exists $thing->{id};
+ my $ref;
+ $ref = $ping{$thing->{id}} if exists $thing->{id};
$ref = find(($thing->{user}||$thing->{origin}), ($thing->{touser}||$thing->{group})) unless $ref;
if ($ref) {
my $t = tv_interval($ref->{t}, [ gettimeofday ]);