From ef49ac7049c7bdf92720c87024e67b5cdf91b1d5 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 30 Mar 2020 18:18:36 +0100 Subject: [PATCH] do hide hidden groups on profile --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 3 +++ OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index eeee5316c3..d58b6241f2 100755 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -4104,6 +4104,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP LLSDxmlEncode.AddElem("AvatarID", avatarID, sb); LLSDxmlEncode.AddEndMapAndArray(sb); + bool notSameAvatar = avatarID != AgentId; if(data.Length == 0) LLSDxmlEncode.AddEmptyArray("GroupData", sb); else @@ -4113,6 +4114,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP for (int indx = 0; indx < data.Length; ++indx) { m = data[indx]; + if(notSameAvatar && !m.ListInProfile) + continue; LLSDxmlEncode.AddMap(sb); LLSDxmlEncode.AddElem("GroupPowers", m.GroupPowers, sb); LLSDxmlEncode.AddElem("GroupTitle", m.GroupTitle, sb); diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs index 414bbd4008..b1df1b69af 100755 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs @@ -417,7 +417,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP if (config != null) { m_recvBufferSize = config.GetInt("client_socket_rcvbuf_size", 0); - sceneThrottleBps = config.GetInt("scene_throttle_max_bps", 0); + sceneThrottleBps = config.GetInt("scene_throttle_max_bps", 6250000); TextureSendLimit = config.GetInt("TextureSendLimit", 20);