Add a "LockedOut" flag to allow locking a region out via the grid server.
This flag prevents registration of a known regionslimupdates
parent
9727e3d66b
commit
78e9dc7c2c
|
@ -71,6 +71,7 @@ namespace OpenSim.Data
|
||||||
FallbackRegion = 2, // Regions we redirect to when the destination is down
|
FallbackRegion = 2, // Regions we redirect to when the destination is down
|
||||||
RegionOnline = 4, // Set when a region comes online, unset when it unregisters and DeleteOnUnregister is false
|
RegionOnline = 4, // Set when a region comes online, unset when it unregisters and DeleteOnUnregister is false
|
||||||
NoDirectLogin = 8, // Region unavailable for direct logins (by name)
|
NoDirectLogin = 8, // Region unavailable for direct logins (by name)
|
||||||
Persistent = 16 // Don't remove on unregister
|
Persistent = 16, // Don't remove on unregister
|
||||||
|
LockedOut = 32 // Don't allow registration
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -119,6 +119,9 @@ namespace OpenSim.Services.GridService
|
||||||
|
|
||||||
if (region != null)
|
if (region != null)
|
||||||
{
|
{
|
||||||
|
if ((Convert.ToInt32(region.Data["flags"]) & (int)OpenSim.Data.RegionFlags.LockedOut) != 0)
|
||||||
|
return false;
|
||||||
|
|
||||||
rdata.Data["flags"] = region.Data["flags"]; // Preserve fields
|
rdata.Data["flags"] = region.Data["flags"]; // Preserve fields
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue