Thank you kindly, Patnad, for a patch that:
This patch allow you to see region rating from the console. Type "show ratings" and it will show you the rating of all your regions.0.6.5-rc1
parent
c1d680b6c3
commit
e08d0a7ba5
|
@ -226,6 +226,9 @@ namespace OpenSim
|
||||||
m_console.Commands.AddCommand("region", false, "show queues",
|
m_console.Commands.AddCommand("region", false, "show queues",
|
||||||
"show queues",
|
"show queues",
|
||||||
"Show queue data", HandleShow);
|
"Show queue data", HandleShow);
|
||||||
|
m_console.Commands.AddCommand("region", false, "show ratings",
|
||||||
|
"show ratings",
|
||||||
|
"Show rating data", HandleShow);
|
||||||
|
|
||||||
m_console.Commands.AddCommand("region", false, "backup",
|
m_console.Commands.AddCommand("region", false, "backup",
|
||||||
"backup",
|
"backup",
|
||||||
|
@ -857,6 +860,28 @@ namespace OpenSim
|
||||||
case "queues":
|
case "queues":
|
||||||
Notice(GetQueuesReport());
|
Notice(GetQueuesReport());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "ratings":
|
||||||
|
m_sceneManager.ForEachScene(
|
||||||
|
delegate(Scene scene)
|
||||||
|
{
|
||||||
|
string rating = "";
|
||||||
|
if (scene.RegionInfo.RegionSettings.Maturity == 1)
|
||||||
|
{
|
||||||
|
rating = "MATURE";
|
||||||
|
}
|
||||||
|
else if (scene.RegionInfo.RegionSettings.Maturity == 2)
|
||||||
|
{
|
||||||
|
rating = "ADULT";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
rating = "PG";
|
||||||
|
}
|
||||||
|
m_console.Notice("Region Name: " + scene.RegionInfo.RegionName + " , Region Rating: " +
|
||||||
|
rating);
|
||||||
|
});
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue