/* find all channels that need to be removed. */
for (Collection<Channel> channels : ImmutableList.of(joinedChannels, extraChannels)) {
/* find all channels that need to be removed. */
for (Collection<Channel> channels : ImmutableList.of(joinedChannels, extraChannels)) {
channelBanManager.ban(channel.get());
if (channelNotJoined.reason() == registeredNicknamesOnly) {
eventBus.post(new GenericMessage(
channelBanManager.ban(channel.get());
if (channelNotJoined.reason() == registeredNicknamesOnly) {
eventBus.post(new GenericMessage(
} else if (channelNotJoined.reason() == inviteOnly) {
eventBus.post(new GenericMessage(
format("%s is invite-only, suspending join for a day.",
} else if (channelNotJoined.reason() == inviteOnly) {
eventBus.post(new GenericMessage(
format("%s is invite-only, suspending join for a day.",