From c1d680b6c3a5e3dc11cd1e7cc9b74d3d81317eee Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Tue, 12 May 2009 03:30:37 +0000 Subject: Thank you kindly, Patnad, for a patch that: This is to handle the changes in the v1.23 viewer of LL regarding the adult rating. With this patch a region can be changed to the adult rating from LL viewer v1.23 and above. --- OpenSim/Framework/RegionInfo.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Framework/RegionInfo.cs') diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index 4c107c9..66dee4b 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs @@ -334,6 +334,11 @@ namespace OpenSim.Framework get { return m_objectCapacity; } } + public byte AccessLevel + { + get { return (byte)Util.ConvertMaturityToAccessLevel((uint)m_regionSettings.Maturity); } + } + public void SetEndPoint(string ipaddr, int port) { IPAddress tmpIP = IPAddress.Parse(ipaddr); @@ -691,5 +696,6 @@ namespace OpenSim.Framework regionInfo.ServerURI = serverURI; return regionInfo; } + } } -- cgit v1.1