}
} else if (words[0].equalsIgnoreCase("cancel")) {
Integer index = Ints.tryParse(words[1]);
- if ((index != null) && (index < lastResult.size())) {
- core.cancelDownload(lastResult.get(index).bot(), lastResult.get(index).pack());
+ if ((index != null) && (index < downloads.size())) {
+ core.cancelDownload(downloads.get(index).bot(), downloads.get(index).pack());
}
} else if (words[0].equalsIgnoreCase("stats")) {
int configuredChannelsCount = core.channels().size();