diff options
Diffstat (limited to 'OpenSim/Server/Handlers/Simulation')
-rw-r--r-- | OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs index 57672a8..89832f4 100644 --- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs +++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | |||
@@ -110,7 +110,12 @@ namespace OpenSim.Server.Handlers.Simulation | |||
110 | DoAgentDelete(request, responsedata, agentID, action, regionID); | 110 | DoAgentDelete(request, responsedata, agentID, action, regionID); |
111 | return responsedata; | 111 | return responsedata; |
112 | } | 112 | } |
113 | else if (method.Equals("QUERYACCESSS")) | 113 | else if (method.Equals("DELETECHILD")) |
114 | { | ||
115 | DoChildAgentDelete(request, responsedata, agentID, action, regionID); | ||
116 | return responsedata; | ||
117 | } | ||
118 | else if (method.Equals("QUERYACCESS")) | ||
114 | { | 119 | { |
115 | DoQueryAccess(request, responsedata, agentID, regionID); | 120 | DoQueryAccess(request, responsedata, agentID, regionID); |
116 | return responsedata; | 121 | return responsedata; |
@@ -387,6 +392,24 @@ namespace OpenSim.Server.Handlers.Simulation | |||
387 | } | 392 | } |
388 | } | 393 | } |
389 | 394 | ||
395 | protected void DoChildAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, UUID regionID) | ||
396 | { | ||
397 | m_log.Debug(" >>> DoChildAgentDelete action:" + action + "; RegionID:" + regionID); | ||
398 | |||
399 | GridRegion destination = new GridRegion(); | ||
400 | destination.RegionID = regionID; | ||
401 | |||
402 | if (action.Equals("release")) | ||
403 | ReleaseAgent(regionID, id); | ||
404 | else | ||
405 | m_SimulationService.CloseChildAgent(destination, id); | ||
406 | |||
407 | responsedata["int_response_code"] = HttpStatusCode.OK; | ||
408 | responsedata["str_response_string"] = "OpenSim agent " + id.ToString(); | ||
409 | |||
410 | m_log.Debug("[AGENT HANDLER]: Child Agent Released/Deleted."); | ||
411 | } | ||
412 | |||
390 | protected void DoAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, UUID regionID) | 413 | protected void DoAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, UUID regionID) |
391 | { | 414 | { |
392 | m_log.Debug(" >>> DoDelete action:" + action + "; RegionID:" + regionID); | 415 | m_log.Debug(" >>> DoDelete action:" + action + "; RegionID:" + regionID); |