aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/GridService/GridService.cs
diff options
context:
space:
mode:
authorMelanie2010-01-10 04:23:23 +0000
committerMelanie2010-01-10 04:23:23 +0000
commit78e9dc7c2c71a2d1cfda7b39dfbc12ddbb64233b (patch)
tree3476e277e98d3b5e652f0a36718a6b3b44790f7e /OpenSim/Services/GridService/GridService.cs
parentAdd "Persistent" flag to regions table flags values (diff)
downloadopensim-SC-78e9dc7c2c71a2d1cfda7b39dfbc12ddbb64233b.zip
opensim-SC-78e9dc7c2c71a2d1cfda7b39dfbc12ddbb64233b.tar.gz
opensim-SC-78e9dc7c2c71a2d1cfda7b39dfbc12ddbb64233b.tar.bz2
opensim-SC-78e9dc7c2c71a2d1cfda7b39dfbc12ddbb64233b.tar.xz
Add a "LockedOut" flag to allow locking a region out via the grid server.
This flag prevents registration of a known region
Diffstat (limited to 'OpenSim/Services/GridService/GridService.cs')
-rw-r--r--OpenSim/Services/GridService/GridService.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs
index 66bbff0..c48b10c 100644
--- a/OpenSim/Services/GridService/GridService.cs
+++ b/OpenSim/Services/GridService/GridService.cs
@@ -119,6 +119,9 @@ namespace OpenSim.Services.GridService
119 119
120 if (region != null) 120 if (region != null)
121 { 121 {
122 if ((Convert.ToInt32(region.Data["flags"]) & (int)OpenSim.Data.RegionFlags.LockedOut) != 0)
123 return false;
124
122 rdata.Data["flags"] = region.Data["flags"]; // Preserve fields 125 rdata.Data["flags"] = region.Data["flags"]; // Preserve fields
123 } 126 }
124 else 127 else