Implement friend perms

slimupdates
Melanie 2010-02-25 04:02:03 +00:00
parent b97f3860cb
commit f2b36f8e76
1 changed files with 11 additions and 1 deletions

View File

@ -191,7 +191,17 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
public uint GetFriendPerms(UUID principalID, UUID friendID)
{
return 1;
if (!m_Friends.ContainsKey(principalID))
return 0;
UserFriendData data = m_Friends[principalID];
foreach (FriendInfo fi in data.Friends)
{
if (fi.Friend == friendID.ToString())
return (uint)fi.TheirFlags;
}
return 0;
}
private byte[] FailureResult()