Always remove all info for a disconnected network.
[xudocci.git] / src / main / java / net / pterodactylus / xdcc / core / Core.java
index d39ee2b..99c5ab6 100644 (file)
@@ -503,9 +503,6 @@ public class Core extends AbstractExecutionThreadService {
                        return;
                }
                networkConnections.remove(network.get());
-               if (!connection.established()) {
-                       return;
-               }
 
                /* find all channels that need to be removed. */
                for (Collection<Channel> channels : ImmutableList.of(joinedChannels, extraChannels)) {
@@ -661,7 +658,8 @@ public class Core extends AbstractExecutionThreadService {
                channelBanManager.ban(channel.get());
                if (channelNotJoined.reason() == registeredNicknamesOnly) {
                        eventBus.post(new GenericMessage(
-                                       format("Not trying to join %s anymore.", channel.get())));
+                                       format("%s requires nickname registration, suspending join for a day.",
+                                                       channel.get())));
                } else if (channelNotJoined.reason() == inviteOnly) {
                        eventBus.post(new GenericMessage(
                                        format("%s is invite-only, suspending join for a day.",