Browse Source

at login do try proper region name match before sending just somewhere that looks similar

UbitUmarov 5 years ago
parent
commit
186e9e2838
1 changed files with 8 additions and 0 deletions
  1. 8 0
      OpenSim/Services/LLLoginService/LLLoginService.cs

+ 8 - 0
OpenSim/Services/LLLoginService/LLLoginService.cs

@@ -757,6 +757,14 @@ namespace OpenSim.Services.LLLoginService
                                     }
                                 }
                             }
+
+                            //find a exact match
+                            foreach(GridRegion r in regions)
+                            {
+                                if(string.Equals(regionName, r.RegionName, StringComparison.CurrentCultureIgnoreCase))
+                                    return r;
+                            }
+                            // else, whatever
                             return regions[0];
                         }
                         else