/* found network? */
if (!network.isPresent()) {
+ eventBus.post(new GenericMessage(String.format("Connected to unknown network: %s", connectionEstablished.connection().hostname())));
return;
}
+ eventBus.post(new GenericMessage(String.format("Connected to network %s.", network.get().name())));
+
/* join all channels on this network. */
for (Channel channel : channels) {
if (channel.network().equals(network.get())) {
try {
+ eventBus.post(new GenericMessage(String.format("Trying to join %s on %s...", channel.name(), network.get().name())));
connectionEstablished.connection().joinChannel(channel.name());
} catch (IOException ioe1) {
logger.log(Level.WARNING, String.format("Could not join %s on %s!", channel.name(), network.get().name()), ioe1);