mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
More cleaning on presence. Friends online/offline works again.
This commit is contained in:
@@ -3884,8 +3884,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
UserAccount account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, uuid);
|
||||
|
||||
PresenceInfo pinfo = null;
|
||||
PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() });
|
||||
PresenceInfo pinfo = PresenceInfo.GetOnlinePresence(pinfos);
|
||||
if (pinfos != null && pinfos.Length > 0)
|
||||
pinfo = pinfos[0];
|
||||
|
||||
if (pinfo == null)
|
||||
return UUID.Zero.ToString();
|
||||
|
||||
Reference in New Issue
Block a user