diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Communications/Local/LocalBackEndServices.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs index a861ceb..9034e49 100644 --- a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs +++ b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs | |||
@@ -514,5 +514,20 @@ namespace OpenSim.Region.Communications.Local | |||
514 | m_log.Debug("[INTERREGION STANDALONE] didn't find land data locally."); | 514 | m_log.Debug("[INTERREGION STANDALONE] didn't find land data locally."); |
515 | return null; | 515 | return null; |
516 | } | 516 | } |
517 | |||
518 | public List<RegionInfo> RequestNamedRegions (string name, int maxNumber) | ||
519 | { | ||
520 | List<RegionInfo> regions = new List<RegionInfo>(); | ||
521 | foreach (RegionInfo info in m_regions.Values) | ||
522 | { | ||
523 | if (info.RegionName.StartsWith(name)) | ||
524 | { | ||
525 | regions.Add(info); | ||
526 | if (regions.Count >= maxNumber) break; | ||
527 | } | ||
528 | } | ||
529 | |||
530 | return regions; | ||
531 | } | ||
517 | } | 532 | } |
518 | } | 533 | } |