Explorar o código

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

UbitUmarov %!s(int64=5) %!d(string=hai) anos
pai
achega
186e9e2838
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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