🚸 Try to activate a bot’s active mode before requesting a pack
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 5 Feb 2024 18:21:08 +0000 (19:21 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 5 Feb 2024 18:21:08 +0000 (19:21 +0100)
src/main/java/net/pterodactylus/xdcc/core/Core.java

index ff7a4e1..ea335ee 100644 (file)
@@ -320,6 +320,7 @@ public class Core extends AbstractExecutionThreadService {
                downloads.put(pack.name(), download);
 
                try {
+                       connection.sendMessage(bot.name(), "XDCC OPTION +ACTIVE");
                        connection.sendMessage(bot.name(), "XDCC SEND " + pack.id());
                } catch (IOException ioe1) {
                        logger.warn("Could not send message to bot!", ioe1);