diff options
author | Melanie Thielker | 2010-08-04 00:45:15 +0200 |
---|---|---|
committer | Melanie | 2010-08-04 00:31:25 +0100 |
commit | 16bdb53683bf15a39f77603d558eda026fd4d21e (patch) | |
tree | 5b9d4d34fc26dceb7b5b21a66e8d46801d8f2bc2 /OpenSim/Services/GridService | |
parent | Bug fix (HG): mantis #4891. This doesn't actually fix the underlying bug, but... (diff) | |
download | opensim-SC_OLD-16bdb53683bf15a39f77603d558eda026fd4d21e.zip opensim-SC_OLD-16bdb53683bf15a39f77603d558eda026fd4d21e.tar.gz opensim-SC_OLD-16bdb53683bf15a39f77603d558eda026fd4d21e.tar.bz2 opensim-SC_OLD-16bdb53683bf15a39f77603d558eda026fd4d21e.tar.xz |
Allow specifying default region flags. Correct a typo.
Diffstat (limited to 'OpenSim/Services/GridService')
-rw-r--r-- | OpenSim/Services/GridService/GridService.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs index f49d86d..ebaed42 100644 --- a/OpenSim/Services/GridService/GridService.cs +++ b/OpenSim/Services/GridService/GridService.cs | |||
@@ -124,7 +124,7 @@ namespace OpenSim.Services.GridService | |||
124 | { | 124 | { |
125 | // Regions reserved for the null key cannot be taken. | 125 | // Regions reserved for the null key cannot be taken. |
126 | if ((string)region.Data["PrincipalID"] == UUID.Zero.ToString()) | 126 | if ((string)region.Data["PrincipalID"] == UUID.Zero.ToString()) |
127 | return "Region location us reserved"; | 127 | return "Region location is reserved"; |
128 | 128 | ||
129 | // Treat it as an auth request | 129 | // Treat it as an auth request |
130 | // | 130 | // |
@@ -210,6 +210,7 @@ namespace OpenSim.Services.GridService | |||
210 | { | 210 | { |
211 | int newFlags = 0; | 211 | int newFlags = 0; |
212 | string regionName = rdata.RegionName.Trim().Replace(' ', '_'); | 212 | string regionName = rdata.RegionName.Trim().Replace(' ', '_'); |
213 | newFlags = ParseFlags(newFlags, gridConfig.GetString("DefaultRegionFlags", String.Empty)); | ||
213 | newFlags = ParseFlags(newFlags, gridConfig.GetString("Region_" + regionName, String.Empty)); | 214 | newFlags = ParseFlags(newFlags, gridConfig.GetString("Region_" + regionName, String.Empty)); |
214 | newFlags = ParseFlags(newFlags, gridConfig.GetString("Region_" + rdata.RegionID.ToString(), String.Empty)); | 215 | newFlags = ParseFlags(newFlags, gridConfig.GetString("Region_" + rdata.RegionID.ToString(), String.Empty)); |
215 | rdata.Data["flags"] = newFlags.ToString(); | 216 | rdata.Data["flags"] = newFlags.ToString(); |