From c6a5ff26fff6a1d0c3ab916a526cf0dd4e4142bc Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Mon, 1 Mar 2010 21:32:55 -0800 Subject: Friends rights under control. --- OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs | 4 +++- OpenSim/Services/Interfaces/IFriendsService.cs | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'OpenSim/Services') diff --git a/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs b/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs index 490c8cf..a29ac28 100644 --- a/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs +++ b/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs @@ -99,7 +99,7 @@ namespace OpenSim.Services.Connectors.Friends return Call(region, sendData); } - public bool GrantRights(GridRegion region, UUID userID, UUID friendID) + public bool GrantRights(GridRegion region, UUID userID, UUID friendID, int userFlags, int rights) { Dictionary sendData = new Dictionary(); //sendData["VERSIONMIN"] = ProtocolVersions.ClientProtocolVersionMin.ToString(); @@ -108,6 +108,8 @@ namespace OpenSim.Services.Connectors.Friends sendData["FromID"] = userID.ToString(); sendData["ToID"] = friendID.ToString(); + sendData["UserFlags"] = userFlags.ToString(); + sendData["Rights"] = rights.ToString(); return Call(region, sendData); } diff --git a/OpenSim/Services/Interfaces/IFriendsService.cs b/OpenSim/Services/Interfaces/IFriendsService.cs index fc20224..2692c48 100644 --- a/OpenSim/Services/Interfaces/IFriendsService.cs +++ b/OpenSim/Services/Interfaces/IFriendsService.cs @@ -32,13 +32,17 @@ using System.Collections.Generic; namespace OpenSim.Services.Interfaces { - public struct FriendInfo + public class FriendInfo { public UUID PrincipalID; public string Friend; public int MyFlags; public int TheirFlags; + public FriendInfo() + { + } + public FriendInfo(Dictionary kvp) { PrincipalID = UUID.Zero; -- cgit v1.1