diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 6a3f464..663ac0c 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -3692,12 +3692,13 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
3692 | if (LLUUID.TryParse(id,out key)) | 3692 | if (LLUUID.TryParse(id,out key)) |
3693 | { | 3693 | { |
3694 | ScenePresence presence = World.GetScenePresence(key); | 3694 | ScenePresence presence = World.GetScenePresence(key); |
3695 | 3695 | ||
3696 | if (presence != null) | 3696 | if (presence != null) |
3697 | { | 3697 | { |
3698 | return presence.Name; | 3698 | return presence.ControllingClient.Name; |
3699 | //return presence.Name; | ||
3699 | } | 3700 | } |
3700 | 3701 | ||
3701 | if (World.GetSceneObjectPart(key) != null) | 3702 | if (World.GetSceneObjectPart(key) != null) |
3702 | { | 3703 | { |
3703 | return World.GetSceneObjectPart(key).Name; | 3704 | return World.GetSceneObjectPart(key).Name; |