$termcounter[$botcounter] = 0;
$packcounter[$botcounter] = 0;
push(@{$totags[$botcounter]}, Irssi::timeout_add_once($exedelay * 1000 * 60, sub { ag_search($botcounter); } , []));
- $runningflag = 0;
}
}
elsif ($packcounter[$botcounter] < $#packlist)
$termcounter[$botcounter] = 0;
$packcounter[$botcounter] = 0;
push(@{$totags[$botcounter]}, Irssi::timeout_add_once($exedelay * 1000 * 60, sub { ag_search($botcounter); } , []));
- $runningflag = 0;
}
}
{
$filename =~ tr/[ ']/[__]/;
@filenames = grep { $_ ne $filename } @filenames; #remove the file from the list of files being transferred
- }
+ }
ag_remtimeouts($botcounter);
if ($dcc->{'skipped'} == $dcc->{'size'})
$termcounter[$botcounter] = 0;
$packcounter[$botcounter] = 0;
Irssi::timeout_add_once($exedelay * 1000 * 60, sub { ag_search($temp); } , []);
- $runningflag = 0;
}
}
}
print FINISHED $bots[$botcounter] . " " . $packs[$botcounter][$packcounter[$botcounter]] . "\n"; #print pack to file
$filename =~ tr/[ ']/[__]/;
print FINISHED $filename . "\n"; #print name to file
- close(FINISHED);
+ close(FINISHED);
+ ag_getfinished;
}