aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorOren Hurvitz2014-04-02 14:28:40 +0300
committerOren Hurvitz2014-04-02 13:08:31 +0100
commit0301c81b017c10af7c694c4d5a90489df99c9460 (patch)
treef8e5305cd1cbc6dca58eb01e243bd1501037df9e /OpenSim
parentFixed AssetsExist in SQLite (diff)
downloadopensim-SC_OLD-0301c81b017c10af7c694c4d5a90489df99c9460.zip
opensim-SC_OLD-0301c81b017c10af7c694c4d5a90489df99c9460.tar.gz
opensim-SC_OLD-0301c81b017c10af7c694c4d5a90489df99c9460.tar.bz2
opensim-SC_OLD-0301c81b017c10af7c694c4d5a90489df99c9460.tar.xz
Made GetScenePresence() case-insensitive when searching by user name. This makes it easier to use console commands such as "show appearance".
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs3
1 files changed, 2 insertions, 1 deletions
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
772 List<ScenePresence> presences = GetScenePresences(); 772 List<ScenePresence> presences = GetScenePresences();
773 foreach (ScenePresence presence in presences) 773 foreach (ScenePresence presence in presences)
774 { 774 {
775 if (presence.Firstname == firstName && presence.Lastname == lastName) 775 if (string.Equals(presence.Firstname, firstName, StringComparison.CurrentCultureIgnoreCase)
776 && string.Equals(presence.Lastname, lastName, StringComparison.CurrentCultureIgnoreCase))
776 return presence; 777 return presence;
777 } 778 }
778 return null; 779 return null;