mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
Attempt to fix the issue where, when logging into the grid, the user supplies a region name, but instead of going to the specific region, they are sent to a region "Like" the one specified.
Signed-off-by: Terry <terry@digiworldz.com> Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
@@ -330,6 +330,12 @@ namespace OpenSim.Services.Connectors
|
||||
return rinfo;
|
||||
}
|
||||
|
||||
public GridRegion GetRegionByNameSpecific(UUID scopeID, string regionName)
|
||||
{
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public GridRegion GetRegionByName(UUID scopeID, string regionName)
|
||||
{
|
||||
Dictionary<string, object> sendData = new Dictionary<string, object>();
|
||||
|
||||
@@ -100,6 +100,8 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
|
||||
#region IGridService
|
||||
|
||||
|
||||
|
||||
public string RegisterRegion(UUID scopeID, GridRegion regionInfo)
|
||||
{
|
||||
IPEndPoint ext = regionInfo.ExternalEndPoint;
|
||||
@@ -245,6 +247,12 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
}
|
||||
}
|
||||
|
||||
public GridRegion GetRegionByNameSpecific(UUID scopeID, string regionName)
|
||||
{
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public GridRegion GetRegionByName(UUID scopeID, string regionName)
|
||||
{
|
||||
List<GridRegion> regions = GetRegionsByName(scopeID, regionName, 1);
|
||||
|
||||
@@ -490,7 +490,18 @@ namespace OpenSim.Services.GridService
|
||||
return null;
|
||||
}
|
||||
|
||||
public List<GridRegion> GetRegionsByName(UUID scopeID, string name, int maxNumber)
|
||||
//BA MOD....
|
||||
public GridRegion GetRegionByNameSpecific(UUID scopeID, string name)
|
||||
{
|
||||
RegionData rdata = m_Database.GetSpecific(name, scopeID);
|
||||
if (rdata != null)
|
||||
{
|
||||
return RegionData2RegionInfo(rdata);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public List<GridRegion> GetRegionsByName(UUID scopeID, string name, int maxNumber)
|
||||
{
|
||||
// m_log.DebugFormat("[GRID SERVICE]: GetRegionsByName {0}", name);
|
||||
|
||||
|
||||
@@ -84,6 +84,10 @@ namespace OpenSim.Services.Interfaces
|
||||
/// <returns>Returns the region information if the name matched. Null otherwise.</returns>
|
||||
GridRegion GetRegionByName(UUID scopeID, string regionName);
|
||||
|
||||
|
||||
//BA MOD.....
|
||||
GridRegion GetRegionByNameSpecific(UUID scopeID, string regionName);
|
||||
|
||||
/// <summary>
|
||||
/// Get information about regions starting with the provided name.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user