From: David ‘Bombe’ Roden Date: Thu, 18 Apr 2013 04:14:18 +0000 (+0200) Subject: Fix constructor. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a681f70ad3b8872d9f6f011f95e05bb51d97ede0;p=xudocci.git Fix constructor. --- diff --git a/src/main/java/net/pterodactylus/xdcc/core/Core.java b/src/main/java/net/pterodactylus/xdcc/core/Core.java index 0e7d2e7..39dc3ad 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/Core.java +++ b/src/main/java/net/pterodactylus/xdcc/core/Core.java @@ -534,7 +534,7 @@ public class Core extends AbstractExecutionThreadService { Bot bot; synchronized (networkBots) { if (!networkBots.contains(network.get(), channelMessageReceived.source().nick().get())) { - bot = new Bot(network.get()).name(channelMessageReceived.source().nick().get()); + bot = new Bot(network.get(), channelMessageReceived.source().nick().get()); networkBots.put(network.get(), channelMessageReceived.source().nick().get(), bot); eventBus.post(new BotAdded(bot)); } else {