aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorDiva Canto2010-05-08 07:44:07 -0700
committerDiva Canto2010-05-08 07:44:07 -0700
commitd72769930aebb14ae4bfee9803adb13fbb44eb8b (patch)
tree32e9a36cab73a8ddb3528d50281c261815c44658 /OpenSim/Region/ScriptEngine/Shared/Api
parenttest commit for panda (diff)
downloadopensim-SC_OLD-d72769930aebb14ae4bfee9803adb13fbb44eb8b.zip
opensim-SC_OLD-d72769930aebb14ae4bfee9803adb13fbb44eb8b.tar.gz
opensim-SC_OLD-d72769930aebb14ae4bfee9803adb13fbb44eb8b.tar.bz2
opensim-SC_OLD-d72769930aebb14ae4bfee9803adb13fbb44eb8b.tar.xz
More cleaning on presence. Friends online/offline works again.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-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();