Allow specifying default region flags. Correct a typo.

prebuild-update
Melanie Thielker 2010-08-04 00:45:15 +02:00 committed by Melanie
parent 239478f3a9
commit 16bdb53683
1 changed files with 2 additions and 1 deletions

View File

@ -124,7 +124,7 @@ namespace OpenSim.Services.GridService
{
// Regions reserved for the null key cannot be taken.
if ((string)region.Data["PrincipalID"] == UUID.Zero.ToString())
return "Region location us reserved";
return "Region location is reserved";
// Treat it as an auth request
//
@ -210,6 +210,7 @@ namespace OpenSim.Services.GridService
{
int newFlags = 0;
string regionName = rdata.RegionName.Trim().Replace(' ', '_');
newFlags = ParseFlags(newFlags, gridConfig.GetString("DefaultRegionFlags", String.Empty));
newFlags = ParseFlags(newFlags, gridConfig.GetString("Region_" + regionName, String.Empty));
newFlags = ParseFlags(newFlags, gridConfig.GetString("Region_" + rdata.RegionID.ToString(), String.Empty));
rdata.Data["flags"] = newFlags.ToString();