X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fxdcc%2Fcore%2FCore.java;h=98bd1588b679f1ecaa1f3427b53af2a57cccf5ec;hb=1bfd1f9819b117291679aa292f11a84cf98f9774;hp=c9c021801cb7cc03a4cdded2047013303e331dcb;hpb=337460f355a3e652b760a057fe4ddd8e6847c905;p=xudocci.git diff --git a/src/main/java/net/pterodactylus/xdcc/core/Core.java b/src/main/java/net/pterodactylus/xdcc/core/Core.java index c9c0218..98bd158 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/Core.java +++ b/src/main/java/net/pterodactylus/xdcc/core/Core.java @@ -915,11 +915,11 @@ public class Core extends AbstractExecutionThreadService { eventBus.post(new GenericMessage("d")); Download download = openDownloads.stream() - .filter(it -> it.filename().equals(dccSendReceived.filename())) + .filter(it -> Objects.equals(it.filename(), dccSendReceived.filename())) .findFirst() .orElse(openDownloads.iterator().next()); eventBus.post(new GenericMessage("e")); - eventBus.post(new GenericMessage(format("Downloading %s from %s as %s.", dccSendReceived.filename(), dccSendReceived.source(), download.filename()))); + eventBus.post(new GenericMessage(format("Downloading %s from %s as %s.", dccSendReceived.filename(), dccSendReceived.source(), download.pack().name()))); /* check if the file already exists. */ File outputFile = new File(temporaryDirectory, dccSendReceived.filename());