mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
some cleanup.. remove some stats that only some do look at once on a lifetime
This commit is contained in:
@@ -247,11 +247,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||
{
|
||||
FriendInfo[] friends = GetFriendsFromCache(principalID);
|
||||
FriendInfo finfo = GetFriend(friends, friendID);
|
||||
if (finfo != null)
|
||||
if (finfo != null && finfo.TheirFlags != -1)
|
||||
{
|
||||
return finfo.TheirFlags;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -756,7 +755,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||
if (friend == null)
|
||||
return;
|
||||
|
||||
if((friend.TheirFlags & (int)FriendRights.CanSeeOnMap) == 0)
|
||||
if(friend.TheirFlags == -1 || (friend.TheirFlags & (int)FriendRights.CanSeeOnMap) == 0)
|
||||
return;
|
||||
|
||||
Scene hunterScene = (Scene)remoteClient.Scene;
|
||||
|
||||
@@ -214,7 +214,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||
FriendInfo[] friends = GetFriendsFromCache(client.AgentId);
|
||||
foreach (FriendInfo f in friends)
|
||||
{
|
||||
client.SendChangeUserRights(new UUID(f.Friend), client.AgentId, f.TheirFlags);
|
||||
int rights = f.TheirFlags;
|
||||
if(rights != -1 )
|
||||
client.SendChangeUserRights(new UUID(f.Friend), client.AgentId, rights);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user