Show online in profile if target is in same region

This commit is contained in:
Kevin Cozens
2016-12-15 17:57:33 -05:00
parent 7c7b261d18
commit 6a0253dc90
@@ -774,7 +774,7 @@ namespace OpenSimProfile.Modules.OpenProfile
((INPC)(p.ControllingClient)).profileAbout,
((INPC)(p.ControllingClient)).Born,
Utils.StringToBytes("Non Player Character"),
"NPCs have no life.", 16, UUID.Zero,
"NPCs have no life.", 0x10, UUID.Zero,
((INPC)(p.ControllingClient)).profileImage,
String.Empty, UUID.Zero);
remoteClient.SendAvatarInterestsReply(avatarID, 0, String.Empty,
@@ -871,6 +871,10 @@ namespace OpenSimProfile.Modules.OpenProfile
if (profileData["Partner"] != null)
partner = new UUID(profileData["Partner"].ToString());
// If on same region force online
if (p != null && !p.IsDeleted)
flags |= 0x10;
// The PROFILE information is no longer stored in the user
// account. It now needs to be taken from the XMLRPC
//