import net.pterodactylus.xdcc.data.Pack;
import com.google.common.collect.Lists;
+import com.google.common.primitives.Ints;
import com.google.common.util.concurrent.AbstractExecutionThreadService;
/**
writer.write(String.format("[%d] %s (%s, %d%%%s)\n", counter++, dccReceiver.filename(), dccReceiver.size(), dccReceiver.progress() * 100 / dccReceiver.size(), dccReceiver.isRunning() ? "" : ", finished"));
}
writer.write("End of DCCs.\n");
+ } else if (words[0].equalsIgnoreCase("get")) {
+ Integer index = Ints.tryParse(words[1]);
+ if ((index != null) && (index < lastResult.size())) {
+ core.fetch(lastResult.get(index).bot(), lastResult.get(index).pack());
+ }
}
lastLine = line;