channels.add(channel);
}
+ /**
+ * Fetches the given pack from the given bot.
+ *
+ * @param bot
+ * The bot to fetch the pack from
+ * @param pack
+ * The pack to fetch
+ */
+ public void fetch(Bot bot, Pack pack) {
+ Connection connection = networkConnections.get(bot.network());
+ if (connection == null) {
+ return;
+ }
+
+ try {
+ connection.sendMessage(bot.name(), "XDCC SEND " + pack.id());
+ } catch (IOException ioe1) {
+ logger.log(Level.WARNING, "Could not send message to bot!", ioe1);
+ }
+ }
+
//
// ABSTRACTIDLESERVICE METHODS
//