aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Server')
-rw-r--r--OpenSim/Server/Handlers/Simulation/AgentHandlers.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
index 21b26df..6d06cb8 100644
--- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
+++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
@@ -105,6 +105,11 @@ namespace OpenSim.Server.Handlers.Simulation
105 DoAgentDelete(request, responsedata, agentID, action, regionID); 105 DoAgentDelete(request, responsedata, agentID, action, regionID);
106 return responsedata; 106 return responsedata;
107 } 107 }
108 else if (method.Equals("DELETECHILD"))
109 {
110 DoChildAgentDelete(request, responsedata, agentID, action, regionID);
111 return responsedata;
112 }
108 else if (method.Equals("QUERYACCESS")) 113 else if (method.Equals("QUERYACCESS"))
109 { 114 {
110 DoQueryAccess(request, responsedata, agentID, regionID); 115 DoQueryAccess(request, responsedata, agentID, regionID);
@@ -298,6 +303,24 @@ namespace OpenSim.Server.Handlers.Simulation
298 } 303 }
299 } 304 }
300 305
306 protected void DoChildAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, UUID regionID)
307 {
308 m_log.Debug(" >>> DoChildAgentDelete action:" + action + "; RegionID:" + regionID);
309
310 GridRegion destination = new GridRegion();
311 destination.RegionID = regionID;
312
313 if (action.Equals("release"))
314 ReleaseAgent(regionID, id);
315 else
316 m_SimulationService.CloseChildAgent(destination, id);
317
318 responsedata["int_response_code"] = HttpStatusCode.OK;
319 responsedata["str_response_string"] = "OpenSim agent " + id.ToString();
320
321 m_log.Debug("[AGENT HANDLER]: Child Agent Released/Deleted.");
322 }
323
301 protected void DoAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, UUID regionID) 324 protected void DoAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, UUID regionID)
302 { 325 {
303 m_log.Debug(" >>> DoDelete action:" + action + "; RegionID:" + regionID); 326 m_log.Debug(" >>> DoDelete action:" + action + "; RegionID:" + regionID);