aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 7903b52..85017373 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -2627,7 +2627,18 @@ namespace OpenSim.Region.ScriptEngine.Common
2627 public string llKey2Name(string id) 2627 public string llKey2Name(string id)
2628 { 2628 {
2629 m_host.AddScriptLPS(1); 2629 m_host.AddScriptLPS(1);
2630 NotImplemented("llKey2Name"); 2630 LLUUID key = new LLUUID();
2631 if (LLUUID.TryParse(id,out key))
2632 {
2633 if (World.m_innerScene.ScenePresences.ContainsKey(key))
2634 {
2635 return World.m_innerScene.ScenePresences[key].Firstname + " " + World.m_innerScene.ScenePresences[key].Lastname;
2636 }
2637 if (World.GetSceneObjectPart(key) != null)
2638 {
2639 return World.GetSceneObjectPart(key).Name;
2640 }
2641 }
2631 return String.Empty; 2642 return String.Empty;
2632 } 2643 }
2633 2644