Change friends to handle offers as it was originally designed. This may

need to be changed in SQLite & MSSQL as well
This commit is contained in:
Melanie
2010-03-01 00:02:14 +00:00
parent 18727235a0
commit bfcc57c071
4 changed files with 5 additions and 21 deletions

View File

@@ -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;