mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
This fixes the crash reported in http://opensimulator.org/mantis/view.php?id=5529 related to sending IMs to foreign friends who are offline. Hopefully.
This commit is contained in:
@@ -268,18 +268,18 @@ namespace OpenSim.Server.Handlers.Hypergrid
|
||||
ids.Add(requestData[key].ToString());
|
||||
}
|
||||
|
||||
List<UUID> online = m_HomeUsersService.GetOnlineFriends(userID, ids);
|
||||
if (online.Count > 0)
|
||||
{
|
||||
int i = 0;
|
||||
foreach (UUID id in online)
|
||||
{
|
||||
hash["friend_" + i.ToString()] = id.ToString();
|
||||
i++;
|
||||
}
|
||||
}
|
||||
else
|
||||
hash["result"] = "No Friends Online";
|
||||
//List<UUID> online = m_HomeUsersService.GetOnlineFriends(userID, ids);
|
||||
//if (online.Count > 0)
|
||||
//{
|
||||
// int i = 0;
|
||||
// foreach (UUID id in online)
|
||||
// {
|
||||
// hash["friend_" + i.ToString()] = id.ToString();
|
||||
// i++;
|
||||
// }
|
||||
//}
|
||||
//else
|
||||
// hash["result"] = "No Friends Online";
|
||||
}
|
||||
|
||||
XmlRpcResponse response = new XmlRpcResponse();
|
||||
|
||||
Reference in New Issue
Block a user