aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/GridService
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/GridService')
-rw-r--r--OpenSim/Services/GridService/GridService.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs
index c48b10c..4f93ce5 100644
--- a/OpenSim/Services/GridService/GridService.cs
+++ b/OpenSim/Services/GridService/GridService.cs
@@ -127,10 +127,11 @@ namespace OpenSim.Services.GridService
127 else 127 else
128 { 128 {
129 rdata.Data["flags"] = "0"; 129 rdata.Data["flags"] = "0";
130 if (gridConfig != null) 130 if ((gridConfig != null) && rdata.RegionName != string.Empty)
131 { 131 {
132 int newFlags = 0; 132 int newFlags = 0;
133 newFlags = ParseFlags(newFlags, gridConfig.GetString("Region_" + rdata.RegionName, String.Empty)); 133 string regionName = rdata.RegionName.Trim().Replace(' ', '_');
134 newFlags = ParseFlags(newFlags, gridConfig.GetString("Region_" + regionName, String.Empty));
134 newFlags = ParseFlags(newFlags, gridConfig.GetString("Region_" + rdata.RegionID.ToString(), String.Empty)); 135 newFlags = ParseFlags(newFlags, gridConfig.GetString("Region_" + rdata.RegionID.ToString(), String.Empty));
135 rdata.Data["flags"] = newFlags.ToString(); 136 rdata.Data["flags"] = newFlags.ToString();
136 } 137 }