diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 25 |
1 files changed, 25 insertions, 0 deletions
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 | |||
226 | m_console.Commands.AddCommand("region", false, "show queues", | 226 | m_console.Commands.AddCommand("region", false, "show queues", |
227 | "show queues", | 227 | "show queues", |
228 | "Show queue data", HandleShow); | 228 | "Show queue data", HandleShow); |
229 | m_console.Commands.AddCommand("region", false, "show ratings", | ||
230 | "show ratings", | ||
231 | "Show rating data", HandleShow); | ||
229 | 232 | ||
230 | m_console.Commands.AddCommand("region", false, "backup", | 233 | m_console.Commands.AddCommand("region", false, "backup", |
231 | "backup", | 234 | "backup", |
@@ -857,6 +860,28 @@ namespace OpenSim | |||
857 | case "queues": | 860 | case "queues": |
858 | Notice(GetQueuesReport()); | 861 | Notice(GetQueuesReport()); |
859 | break; | 862 | break; |
863 | |||
864 | case "ratings": | ||
865 | m_sceneManager.ForEachScene( | ||
866 | delegate(Scene scene) | ||
867 | { | ||
868 | string rating = ""; | ||
869 | if (scene.RegionInfo.RegionSettings.Maturity == 1) | ||
870 | { | ||
871 | rating = "MATURE"; | ||
872 | } | ||
873 | else if (scene.RegionInfo.RegionSettings.Maturity == 2) | ||
874 | { | ||
875 | rating = "ADULT"; | ||
876 | } | ||
877 | else | ||
878 | { | ||
879 | rating = "PG"; | ||
880 | } | ||
881 | m_console.Notice("Region Name: " + scene.RegionInfo.RegionName + " , Region Rating: " + | ||
882 | rating); | ||
883 | }); | ||
884 | break; | ||
860 | } | 885 | } |
861 | } | 886 | } |
862 | 887 | ||