if ((index != null) && (index < lastResult.size())) {
core.fetch(lastResult.get(index).bot(), lastResult.get(index).pack());
}
+ } 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());
+ }
} else if (words[0].equalsIgnoreCase("stats")) {
int configuredChannelsCount = core.channels().size();
int joinedChannelsCount = core.joinedChannels().size();