Made GetScenePresence() case-insensitive when searching by user name. This makes it easier to use console commands such as "show appearance".
parent
9211361b19
commit
0301c81b01
|
@ -772,7 +772,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
List<ScenePresence> presences = GetScenePresences();
|
List<ScenePresence> presences = GetScenePresences();
|
||||||
foreach (ScenePresence presence in presences)
|
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 presence;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue