From e08d0a7ba58b7faad06b892a7e705c7f44e746e6 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Tue, 12 May 2009 03:35:07 +0000 Subject: 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. --- OpenSim/Region/Application/OpenSim.cs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index f1091b4..2115b75 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -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; } } -- cgit v1.1