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
Charles Krinke 2009-05-12 03:35:07 +00:00
parent c1d680b6c3
commit e08d0a7ba5
1 changed files with 25 additions and 0 deletions

View File

@ -226,6 +226,9 @@ namespace OpenSim
m_console.Commands.AddCommand("region", false, "show queues",
"show queues",
"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",
"backup",
@ -857,6 +860,28 @@ namespace OpenSim
case "queues":
Notice(GetQueuesReport());
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;
}
}