mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
* XInventory fairly tested, including for HG. Almost ready to switch.
* Removed a few buglets and added better exception handling.
This commit is contained in:
@@ -365,6 +365,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||
List<UUID> GetOnlineFriends(UUID userID)
|
||||
{
|
||||
List<string> friendList = new List<string>();
|
||||
List<UUID> online = new List<UUID>();
|
||||
|
||||
foreach (FriendInfo fi in m_Friends[userID].Friends)
|
||||
{
|
||||
@@ -372,9 +373,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||
friendList.Add(fi.Friend);
|
||||
}
|
||||
|
||||
PresenceInfo[] presence = PresenceService.GetAgents(friendList.ToArray());
|
||||
if (friendList.Count == 0)
|
||||
// no friends whatsoever
|
||||
return online;
|
||||
|
||||
List<UUID> online = new List<UUID>();
|
||||
PresenceInfo[] presence = PresenceService.GetAgents(friendList.ToArray());
|
||||
|
||||
foreach (PresenceInfo pi in presence)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user