byte[] HandleRemoveAgentFromGroup(Dictionary <string, object> request)
        {
            Dictionary <string, object> result = new Dictionary <string, object>();

            if (!request.ContainsKey("RequestingAgentID") || !request.ContainsKey("AgentID") || !request.ContainsKey("GroupID"))
            {
                NullResult(result, "Bad network data");
            }
            else
            {
                UUID   groupID           = new UUID(request["GroupID"].ToString());
                string agentID           = request["AgentID"].ToString();
                string requestingAgentID = request["RequestingAgentID"].ToString();

                if (!m_GroupsService.RemoveAgentFromGroup(requestingAgentID, agentID, groupID))
                {
                    NullResult(result, string.Format("Insufficient permissions.", agentID));
                }
                else
                {
                    result["RESULT"] = "true";
                }
            }

            //m_log.DebugFormat("[XXX]: resp string: {0}", xmlString);
            return(Util.UTF8NoBomEncoding.GetBytes(ServerUtils.BuildXmlResponse(result)));
        }
 public void RemoveAgentFromGroup(string RequestingAgentID, string AgentID, UUID GroupID)
 {
     m_GroupsService.RemoveAgentFromGroup(RequestingAgentID, AgentID, GroupID);
 }