add import_cmd and other tidyups
[spider.git] / perl / DXProt.pm
index 2bfd66865c6eac1e2e6808e2bab7e2c423b4ebc0..16c91803950701bfccd329de119a87208aa66dc7 100644 (file)
@@ -1578,13 +1578,13 @@ sub process
                
                # 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;
-#                      }
+                       }
                }
        }
 
@@ -2415,7 +2415,6 @@ sub import_chat
        my $name;
        foreach $name (@names) {
                next if $name =~ /^\./;
-               my $splitit = $name =~ /^split/;
                my $fn = "$chatimportfn/$name";
                next unless -f $fn;
                unless (open(MSG, $fn)) {