aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index b2eb585..79b6be3 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3884,8 +3884,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3884 3884
3885 UserAccount account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, uuid); 3885 UserAccount account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, uuid);
3886 3886
3887 PresenceInfo pinfo = null;
3887 PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() }); 3888 PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() });
3888 PresenceInfo pinfo = PresenceInfo.GetOnlinePresence(pinfos); 3889 if (pinfos != null && pinfos.Length > 0)
3890 pinfo = pinfos[0];
3889 3891
3890 if (pinfo == null) 3892 if (pinfo == null)
3891 return UUID.Zero.ToString(); 3893 return UUID.Zero.ToString();