Bug fix: compare tolower. This should fix the issue where HG visitors currently in the region were not being found by the avatar picker window.

This commit is contained in:
Diva Canto
2013-04-24 12:45:19 -07:00
parent ed22014646
commit 70081a40a4

View File

@@ -200,7 +200,7 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
// search the local cache
foreach (UserData data in m_UserCache.Values)
if (users.Find(delegate(UserData d) { return d.Id == data.Id; }) == null &&
(data.FirstName.StartsWith(query) || data.LastName.StartsWith(query)))
(data.FirstName.ToLower().StartsWith(query.ToLower()) || data.LastName.ToLower().StartsWith(query.ToLower())))
users.Add(data);
AddAdditionalUsers(avatarID, query, users);