@Subscribe
public void dccSendReceived(final DccSendReceived dccSendReceived) {
final Optional<Network> network = getNetwork(dccSendReceived.connection());
+ eventBus.post(new GenericMessage(format("Got DCC Send from %s for %s.", dccSendReceived.source(), dccSendReceived.filename())));
if (!network.isPresent()) {
return;
}
.filter(it -> it.filename().equals(dccSendReceived.filename()))
.findFirst()
.orElse(openDownloads.iterator().next());
- eventBus.post(new GenericMessage(format("Found no offer for %s, using other download from %s, %s.", dccSendReceived.filename(), dccSendReceived.source(), download.filename())));
+ eventBus.post(new GenericMessage(format("Downloading %s from %s as %s.", dccSendReceived.filename(), dccSendReceived.source(), download.filename())));
/* check if the file already exists. */
File outputFile = new File(temporaryDirectory, dccSendReceived.filename());