diff options
author | root | 2010-09-17 01:50:48 +0200 |
---|---|---|
committer | root | 2010-09-17 01:50:48 +0200 |
commit | 251f2444d049ed525ef41c4c4792ec446c53b973 (patch) | |
tree | 6d32c9b3716d181672fe162a882f09590f31ac0d /OpenSim/Region/CoreModules/Avatar/InstantMessage | |
parent | Removing debug (diff) | |
download | opensim-SC_OLD-251f2444d049ed525ef41c4c4792ec446c53b973.zip opensim-SC_OLD-251f2444d049ed525ef41c4c4792ec446c53b973.tar.gz opensim-SC_OLD-251f2444d049ed525ef41c4c4792ec446c53b973.tar.bz2 opensim-SC_OLD-251f2444d049ed525ef41c4c4792ec446c53b973.tar.xz |
Revert "* Changed 11 calls for session info to the more optimized API method"
This reverts commit 5dc9ea2f2487804d788b4b80d40d91bd792de4c2.
Also makes online indicators and IM more robust
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/InstantMessage')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs index a6894ff..2a405ac 100644 --- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs | |||
@@ -497,7 +497,18 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage | |||
497 | if (lookupAgent) | 497 | if (lookupAgent) |
498 | { | 498 | { |
499 | // Non-cached user agent lookup. | 499 | // Non-cached user agent lookup. |
500 | upd = PresenceService.GetAgent(toAgentID); | 500 | PresenceInfo[] presences = PresenceService.GetAgents(new string[] { toAgentID.ToString() }); |
501 | if (presences != null && presences.Length > 0) | ||
502 | { | ||
503 | foreach (PresenceInfo p in presences) | ||
504 | { | ||
505 | if (p.RegionID != UUID.Zero) | ||
506 | { | ||
507 | upd = p; | ||
508 | break; | ||
509 | } | ||
510 | } | ||
511 | } | ||
501 | 512 | ||
502 | if (upd != null) | 513 | if (upd != null) |
503 | { | 514 | { |