import net.pterodactylus.xdcc.core.event.CoreStarted;
import net.pterodactylus.xdcc.data.Bot;
import net.pterodactylus.xdcc.data.Channel;
+import net.pterodactylus.xdcc.data.Download;
import net.pterodactylus.xdcc.data.Network;
import net.pterodactylus.xdcc.data.Pack;
import net.pterodactylus.xdcc.data.Server;
/** The currently known bots. */
private final Table<Network, String, Bot> networkBots = HashBasedTable.create();
+ /** The current downloads. */
+ private final Map<String, Download> downloads = Maps.newHashMap();
+
/** The current DCC receivers. */
private final Collection<DccReceiver> dccReceivers = Sets.newHashSet();
return;
}
+ Download download = new Download(bot, pack);
+ downloads.put(pack.name(), download);
+
try {
connection.sendMessage(bot.name(), "XDCC SEND " + pack.id());
} catch (IOException ioe1) {