mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
* Changed 11 calls for session info to the more optimized API method
This commit is contained in:
@@ -291,8 +291,8 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
// Check if the user is online
|
||||
if (client.Scene is Scene)
|
||||
{
|
||||
OpenSim.Services.Interfaces.PresenceInfo[] presences = ((Scene)client.Scene).PresenceService.GetAgents(new string[] { avatarID.ToString() });
|
||||
if (presences != null && presences.Length > 0)
|
||||
OpenSim.Services.Interfaces.PresenceInfo presence = ((Scene)client.Scene).PresenceService.GetAgent(avatarID);
|
||||
if (presence != null)
|
||||
flags |= ProfileFlags.Online;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user