Amend to previous commit: normalize strings ToLower.

0.7.4.1
Diva Canto 2012-03-17 19:41:47 -07:00
parent 7dfa0309c6
commit 441ef301a3
1 changed files with 6 additions and 2 deletions

View File

@ -91,7 +91,9 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
bool found = false;
foreach (UserData d in m_UserCache.Values)
{
if (d.LastName.StartsWith("@") && (d.FirstName.Equals(words[0]) || d.LastName.Equals(words[1])))
if (d.LastName.StartsWith("@") &&
(d.FirstName.ToLower().Equals(words[0].ToLower()) ||
d.LastName.ToLower().Equals(words[1].ToLower())))
{
users.Add(d);
found = true;
@ -109,7 +111,9 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
{
foreach (UserData d in m_UserCache.Values)
{
if (d.LastName.StartsWith("@") && (d.FirstName.StartsWith(query) || d.LastName.StartsWith(query)))
if (d.LastName.StartsWith("@") &&
(d.FirstName.ToLower().StartsWith(query.ToLower()) ||
d.LastName.ToLower().StartsWith(query.ToLower())))
users.Add(d);
}
}