From 0301c81b017c10af7c694c4d5a90489df99c9460 Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Wed, 2 Apr 2014 14:28:40 +0300 Subject: Made GetScenePresence() case-insensitive when searching by user name. This makes it easier to use console commands such as "show appearance". --- OpenSim/Region/Framework/Scenes/SceneGraph.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs index 558f108..1fdcfd2 100644 --- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs @@ -772,7 +772,8 @@ namespace OpenSim.Region.Framework.Scenes List 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; -- cgit v1.1