private OSDMap GetAbuseReport(OSDMap map)
{
OSDMap resp = new OSDMap();
IAbuseReports ar_service = m_registry.RequestModuleInterface<IAbuseReports>();
if (ar_service == null)
{
resp["Failed"] = new OSDString("Failed to find IAbuseReports service.");
}
else if (!map.ContainsKey("AbuseReport"))
{
resp["Failed"] = new OSDString("Abuse Report ID not specified.");
}
else
{
AbuseReport ar = ar_service.GetAbuseReport(map["AbuseReport"].AsInteger());
if (ar == null)
{
resp["Failed"] = new OSDString("Failed to find Abuse Report with specified ID.");
}
else
{
resp["AbuseReport"] = ar.ToOSD();
}
}
return resp;
}