diff options
author | Charles Krinke | 2009-05-12 03:35:07 +0000 |
---|---|---|
committer | Charles Krinke | 2009-05-12 03:35:07 +0000 |
commit | e08d0a7ba58b7faad06b892a7e705c7f44e746e6 (patch) | |
tree | 5fc66a2eb2a63dc2dc2a5c0c540f0b8362ef2d1a | |
parent | Thank you kindly, Patnad, for a patch that: (diff) | |
download | opensim-SC-e08d0a7ba58b7faad06b892a7e705c7f44e746e6.zip opensim-SC-e08d0a7ba58b7faad06b892a7e705c7f44e746e6.tar.gz opensim-SC-e08d0a7ba58b7faad06b892a7e705c7f44e746e6.tar.bz2 opensim-SC-e08d0a7ba58b7faad06b892a7e705c7f44e746e6.tar.xz |
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.
-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 | ||