Revert "* Changed 11 calls for session info to the more optimized API method"

This reverts commit 5dc9ea2f24.
Also makes online indicators and IM more robust
This commit is contained in:
root
2010-09-17 01:50:48 +02:00
parent 1e4e978f7f
commit 251f2444d0
4 changed files with 109 additions and 37 deletions

View File

@@ -497,7 +497,18 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
if (lookupAgent)
{
// Non-cached user agent lookup.
upd = PresenceService.GetAgent(toAgentID);
PresenceInfo[] presences = PresenceService.GetAgents(new string[] { toAgentID.ToString() });
if (presences != null && presences.Length > 0)
{
foreach (PresenceInfo p in presences)
{
if (p.RegionID != UUID.Zero)
{
upd = p;
break;
}
}
}
if (upd != null)
{