mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
* Changed 11 calls for session info to the more optimized API method
This commit is contained in:
@@ -498,9 +498,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
|
||||
if (lookupAgent)
|
||||
{
|
||||
// Non-cached user agent lookup.
|
||||
PresenceInfo[] presences = PresenceService.GetAgents(new string[] { toAgentID.ToString() });
|
||||
if (presences != null && presences.Length > 0)
|
||||
upd = presences[0];
|
||||
upd = PresenceService.GetAgent(toAgentID);
|
||||
|
||||
if (upd != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user