mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +08:00
When preparing a Hypergrid teleport, tell the receiving grid which user is entering the grid.
This can affect which region to use. E.g., returning users may be allowed to enter any region, whereas users from other grids will have to enter a gateway region. Previously per-user decisions were only made later, but by then it's too late to change which region the user enters.
This commit is contained in:
@@ -94,8 +94,15 @@ namespace OpenSim.Server.Handlers.Hypergrid
|
||||
UUID regionID = UUID.Zero;
|
||||
UUID.TryParse(regionID_str, out regionID);
|
||||
|
||||
UUID agentID = UUID.Zero;
|
||||
string agentHomeURI = null;
|
||||
if (requestData.ContainsKey("agent_id"))
|
||||
agentID = UUID.Parse((string)requestData["agent_id"]);
|
||||
if (requestData.ContainsKey("agent_home_uri"))
|
||||
agentHomeURI = (string)requestData["agent_home_uri"];
|
||||
|
||||
string message;
|
||||
GridRegion regInfo = m_GatekeeperService.GetHyperlinkRegion(regionID, out message);
|
||||
GridRegion regInfo = m_GatekeeperService.GetHyperlinkRegion(regionID, agentID, agentHomeURI, out message);
|
||||
|
||||
Hashtable hash = new Hashtable();
|
||||
if (regInfo == null)
|
||||
|
||||
Reference in New Issue
Block a user