Made GetScenePresence() case-insensitive when searching by user name. This makes it easier to use console commands such as "show appearance".

0.8.0.3
Oren Hurvitz 2014-04-02 14:28:40 +03:00
parent 9211361b19
commit 0301c81b01
1 changed files with 2 additions and 1 deletions

View File

@ -772,7 +772,8 @@ namespace OpenSim.Region.Framework.Scenes
List<ScenePresence> presences = GetScenePresences();
foreach (ScenePresence presence in presences)
{
if (presence.Firstname == firstName && presence.Lastname == lastName)
if (string.Equals(presence.Firstname, firstName, StringComparison.CurrentCultureIgnoreCase)
&& string.Equals(presence.Lastname, lastName, StringComparison.CurrentCultureIgnoreCase))
return presence;
}
return null;