mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Friends rights under control.
This commit is contained in:
@@ -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<string, object> sendData = new Dictionary<string, object>();
|
||||
//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);
|
||||
}
|
||||
|
||||
@@ -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<string, object> kvp)
|
||||
{
|
||||
PrincipalID = UUID.Zero;
|
||||
|
||||
Reference in New Issue
Block a user