diff options
author | Diva Canto | 2009-10-27 20:32:48 -0700 |
---|---|---|
committer | Diva Canto | 2009-10-27 20:32:48 -0700 |
commit | 6a6a8df1ba2a0e8d7c59c687aff86cd8f078d2f0 (patch) | |
tree | adc0a94e6c9222fdc399515f828976fc0d43cf71 /OpenSim/Region/CoreModules | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-6a6a8df1ba2a0e8d7c59c687aff86cd8f078d2f0.zip opensim-SC-6a6a8df1ba2a0e8d7c59c687aff86cd8f078d2f0.tar.gz opensim-SC-6a6a8df1ba2a0e8d7c59c687aff86cd8f078d2f0.tar.bz2 opensim-SC-6a6a8df1ba2a0e8d7c59c687aff86cd8f078d2f0.tar.xz |
Make map search work also for hyperlinked regions.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs index 046bee5..40ac647 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs | |||
@@ -322,10 +322,12 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
322 | { | 322 | { |
323 | List<GridRegion> rinfos = new List<GridRegion>(); | 323 | List<GridRegion> rinfos = new List<GridRegion>(); |
324 | 324 | ||
325 | // Commenting until regionname exists | 325 | if (name == string.Empty) |
326 | //foreach (SimpleRegionInfo r in m_HyperlinkRegions.Values) | 326 | return rinfos; |
327 | // if ((r.RegionName != null) && r.RegionName.StartsWith(name)) | 327 | |
328 | // rinfos.Add(r); | 328 | foreach (GridRegion r in m_HyperlinkRegions.Values) |
329 | if ((r.RegionName != null) && r.RegionName.ToLower().StartsWith(name.ToLower())) | ||
330 | rinfos.Add(r); | ||
329 | 331 | ||
330 | rinfos.AddRange(m_GridServiceConnector.GetRegionsByName(scopeID, name, maxNumber)); | 332 | rinfos.AddRange(m_GridServiceConnector.GetRegionsByName(scopeID, name, maxNumber)); |
331 | return rinfos; | 333 | return rinfos; |