diff --git a/OpenSim/Framework/EstateSettings.cs b/OpenSim/Framework/EstateSettings.cs index 1b5ebfaafb..1c0b97af98 100644 --- a/OpenSim/Framework/EstateSettings.cs +++ b/OpenSim/Framework/EstateSettings.cs @@ -153,7 +153,7 @@ namespace OpenSim.Framework private bool m_DenyAnonymous = false; public bool DenyAnonymous { - get { return m_DenyAnonymous; } + get { return (DoDenyAnonymous && m_DenyAnonymous); } set { m_DenyAnonymous = value; } } @@ -233,7 +233,7 @@ namespace OpenSim.Framework private bool m_DenyMinors = false; public bool DenyMinors { - get { return m_DenyMinors; } + get { return (DoDenyMinors && m_DenyMinors); } set { m_DenyMinors = value; } } @@ -379,14 +379,14 @@ namespace OpenSim.Framework if (!HasAccess(avatarID)) { - if (DoDenyMinors && DenyMinors) + if (DenyMinors) { if ((userFlags & 32) == 0) { return true; } } - if (DoDenyAnonymous && DenyAnonymous) + if (DenyAnonymous) { if ((userFlags & 4) == 0) { diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs index 63e3782606..0c5224b8be 100644 --- a/OpenSim/Framework/IClientAPI.cs +++ b/OpenSim/Framework/IClientAPI.cs @@ -1106,7 +1106,7 @@ namespace OpenSim.Framework // void SendPartFullUpdate(ISceneEntity ent, uint? parentID); void SendAnimations(UUID[] animID, int[] seqs, UUID sourceAgentId, UUID[] objectIDs); - void SendRegionHandshake(RegionInfo regionInfo, RegionHandshakeArgs args); + void SendRegionHandshake(); /// /// Send chat to the viewer. diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index aae4b87c83..50bb9ba0db 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -890,7 +890,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP 0xff, 0xff, 0, 1, 148 // ID 148 (low frequency bigendian) zero encoded }; - public void SendRegionHandshake(RegionInfo _regionInfo, RegionHandshakeArgs args) + + public void SendRegionHandshake() { RegionInfo regionInfo = m_scene.RegionInfo; RegionSettings regionSettings = regionInfo.RegionSettings; diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs index 2f73454223..c899428f08 100755 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs @@ -1725,11 +1725,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP // circuit code to the existing child agent. This is not particularly obvious. SendAckImmediate(endPoint, uccp.Header.Sequence); - client.CheckViewerCaps(); - - // We only want to send initial data to new clients, not ones which are being converted from child to root. if (client != null) { + client.SendRegionHandshake(); + + client.CheckViewerCaps(); + + // We only want to send initial data to new clients, not ones which are being converted from child to root. bool tp = (aCircuit.teleportFlags > 0); // Let's delay this for TP agents, otherwise the viewer doesn't know where to get resources from if (!tp) diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs index fb195e7119..59ce05a6a9 100644 --- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs +++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs @@ -932,7 +932,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server OnSetAppearance(this, appearance.Texture, (byte[])appearance.VisualParams.Clone(),appearance.AvatarSize, new WearableCacheItem[0]); } - public void SendRegionHandshake(RegionInfo regionInfo, RegionHandshakeArgs args) + public void SendRegionHandshake() { m_log.Info("[IRCd ClientStack] Completing Handshake to Region"); diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index 9c130618fc..09f2a58873 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs @@ -668,10 +668,6 @@ namespace OpenSim.Region.OptionalModules.World.NPC { } - public virtual void SendStartPingCheck(byte seq) - { - } - public virtual void SendAvatarPickerReply(AvatarPickerReplyAgentDataArgs AgentData, List Data) { } @@ -928,7 +924,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC { } - public virtual void SendRegionHandshake(RegionInfo regionInfo, RegionHandshakeArgs args) + public virtual void SendRegionHandshake() { if (OnRegionHandShakeReply != null) { diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs index 022ebdfe0b..bc6cb60ccd 100644 --- a/OpenSim/Tests/Common/Mock/TestClient.cs +++ b/OpenSim/Tests/Common/Mock/TestClient.cs @@ -876,7 +876,7 @@ namespace OpenSim.Tests.Common { } - public virtual void SendRegionHandshake(RegionInfo regionInfo, RegionHandshakeArgs args) + public virtual void SendRegionHandshake() { if (OnRegionHandShakeReply != null) {