* Implements an experimental method to define which region you want to go to in your 'region domain' in OGP.

This commit is contained in:
Teravus Ovares
2008-09-19 21:37:49 +00:00
parent 025441d722
commit 293a822f74
3 changed files with 143 additions and 11 deletions

View File

@@ -752,11 +752,14 @@ namespace OpenSim.Framework.Servers
foreach (string pattern in m_llsdHandlers.Keys)
{
if (searchquery.StartsWith(searchquery))
if (searchquery.ToLower().StartsWith(pattern.ToLower()))
{
if (String.IsNullOrEmpty(bestMatch) || searchquery.Length > bestMatch.Length)
{
bestMatch = pattern;
// You have to specifically register for '/' and to get it, you must specificaly request it
//
if (pattern == "/" && searchquery == "/" || pattern != "/")
bestMatch = pattern;
}
}
}