diff options
Diffstat (limited to 'OpenSim/Server/Handlers/Simulation/AgentHandlers.cs')
-rw-r--r-- | OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs index c3545aa..b33b0d5 100644 --- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs +++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | |||
@@ -110,6 +110,11 @@ 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("DELETECHILD")) | ||
114 | { | ||
115 | DoChildAgentDelete(request, responsedata, agentID, action, regionID); | ||
116 | return responsedata; | ||
117 | } | ||
113 | else if (method.Equals("QUERYACCESS")) | 118 | else if (method.Equals("QUERYACCESS")) |
114 | { | 119 | { |
115 | DoQueryAccess(request, responsedata, agentID, regionID); | 120 | DoQueryAccess(request, responsedata, agentID, regionID); |
@@ -394,6 +399,24 @@ namespace OpenSim.Server.Handlers.Simulation | |||
394 | } | 399 | } |
395 | } | 400 | } |
396 | 401 | ||
402 | protected void DoChildAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, UUID regionID) | ||
403 | { | ||
404 | m_log.Debug(" >>> DoChildAgentDelete action:" + action + "; RegionID:" + regionID); | ||
405 | |||
406 | GridRegion destination = new GridRegion(); | ||
407 | destination.RegionID = regionID; | ||
408 | |||
409 | if (action.Equals("release")) | ||
410 | ReleaseAgent(regionID, id); | ||
411 | else | ||
412 | m_SimulationService.CloseChildAgent(destination, id); | ||
413 | |||
414 | responsedata["int_response_code"] = HttpStatusCode.OK; | ||
415 | responsedata["str_response_string"] = "OpenSim agent " + id.ToString(); | ||
416 | |||
417 | m_log.Debug("[AGENT HANDLER]: Child Agent Released/Deleted."); | ||
418 | } | ||
419 | |||
397 | protected void DoAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, UUID regionID) | 420 | protected void DoAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, UUID regionID) |
398 | { | 421 | { |
399 | m_log.Debug(" >>> DoDelete action:" + action + "; RegionID:" + regionID); | 422 | m_log.Debug(" >>> DoDelete action:" + action + "; RegionID:" + regionID); |