private void joinValidChannels(Set<String> valid){
  if (valid.isEmpty()) {
    return;
  }
 else   if (!irc.isRegistered()) {
    listener.onJoinError(valid,null,JoinError.NOT_REGISTERED);
  }
 else {
    for (    String channel : valid) {
      if (onChannel(channel)) {
        listener.onJoinError(valid,channel,JoinError.ALREADY_JOINED);
      }
 else {
        join(channel);
      }
    }
  }
}

private void joinValidChannels ( Set < String > valid ) { if ( valid . isEmpty ( ) ) { return ; } else if ( ! irc . isRegistered ( ) ) { listener . onJoinError ( valid , null , JoinError . NOT_REGISTERED ) ; } else { for ( String channel : valid ) { if ( onChannel ( channel ) ) { listener . onJoinError ( valid , channel , JoinError . ALREADY_JOINED ) ; } else { join ( channel ) ; } } } }
joins the valid channels . if offline , opens the connect dialog with the valid channels already entered .
