From bfcc57c0712170e3431617bcb09999bfbb96b8dd Mon Sep 17 00:00:00 2001 From: Melanie Date: Mon, 1 Mar 2010 00:02:14 +0000 Subject: Change friends to handle offers as it was originally designed. This may need to be changed in SQLite & MSSQL as well --- OpenSim/Services/LLLoginService/LLLoginResponse.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenSim/Services/LLLoginService') diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs index 11a7473..05f5b4c 100644 --- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs +++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs @@ -230,7 +230,6 @@ namespace OpenSim.Services.LLLoginService SessionID = aCircuit.SessionID; SecureSessionID = aCircuit.SecureSessionID; Message = message; - // While we don't have friends... BuddList = ConvertFriendListItem(friendsList); StartLocation = where; @@ -612,6 +611,8 @@ namespace OpenSim.Services.LLLoginService LLLoginResponse.BuddyList buddylistreturn = new LLLoginResponse.BuddyList(); foreach (FriendInfo finfo in friendsList) { + if (finfo.TheirFlags == -1) + continue; LLLoginResponse.BuddyList.BuddyInfo buddyitem = new LLLoginResponse.BuddyList.BuddyInfo(finfo.Friend); buddyitem.BuddyID = finfo.Friend; buddyitem.BuddyRightsHave = (int)finfo.TheirFlags; -- cgit v1.1