On initial region registration, if the user chooses the option to make the region part of an existing estate, then list the existing region names.

This commit is contained in:
Justin Clark-Casey (justincc)
2011-03-21 21:37:06 +00:00
parent f4a30f3a23
commit d3a20a1e92
8 changed files with 172 additions and 1 deletions

View File

@@ -828,7 +828,18 @@ namespace OpenSim
}
else
{
response = MainConsole.Instance.CmdPrompt("Estate name to join", "None");
List<EstateSettings> estates = estateDataService.LoadEstateSettingsAll();
List<string> estateNames = new List<string>();
foreach (EstateSettings estate in estates)
estateNames.Add(estate.EstateName);
response
= MainConsole.Instance.CmdPrompt(
string.Format(
"Name of estate to join. Existing estate names are ({0})", string.Join(", ", estateNames.ToArray())),
"None");
if (response == "None")
continue;