diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 82 |
1 files changed, 44 insertions, 38 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index a87dfb7..4d0aa6f 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -103,6 +103,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
103 | public bool m_trustBinaries; | 103 | public bool m_trustBinaries; |
104 | public bool m_allowScriptCrossings; | 104 | public bool m_allowScriptCrossings; |
105 | public bool m_useFlySlow; | 105 | public bool m_useFlySlow; |
106 | public bool m_useTrashOnDelete = true; | ||
106 | 107 | ||
107 | /// <summary> | 108 | /// <summary> |
108 | /// Temporarily setting to trigger appearance resends at 60 second intervals. | 109 | /// Temporarily setting to trigger appearance resends at 60 second intervals. |
@@ -436,6 +437,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
436 | { | 437 | { |
437 | if (m_simulationService == null) | 438 | if (m_simulationService == null) |
438 | m_simulationService = RequestModuleInterface<ISimulationService>(); | 439 | m_simulationService = RequestModuleInterface<ISimulationService>(); |
440 | |||
439 | return m_simulationService; | 441 | return m_simulationService; |
440 | } | 442 | } |
441 | } | 443 | } |
@@ -709,6 +711,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
709 | m_clampPrimSize = true; | 711 | m_clampPrimSize = true; |
710 | } | 712 | } |
711 | 713 | ||
714 | m_useTrashOnDelete = startupConfig.GetBoolean("UseTrashOnDelete",m_useTrashOnDelete); | ||
712 | m_trustBinaries = startupConfig.GetBoolean("TrustBinaries", m_trustBinaries); | 715 | m_trustBinaries = startupConfig.GetBoolean("TrustBinaries", m_trustBinaries); |
713 | m_allowScriptCrossings = startupConfig.GetBoolean("AllowScriptCrossing", m_allowScriptCrossings); | 716 | m_allowScriptCrossings = startupConfig.GetBoolean("AllowScriptCrossing", m_allowScriptCrossings); |
714 | m_dontPersistBefore = | 717 | m_dontPersistBefore = |
@@ -3215,8 +3218,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
3215 | try | 3218 | try |
3216 | { | 3219 | { |
3217 | m_log.DebugFormat( | 3220 | m_log.DebugFormat( |
3218 | "[SCENE]: Removing {0} agent {1} from region {2}", | 3221 | "[SCENE]: Removing {0} agent {1} {2} from region {3}", |
3219 | (isChildAgent ? "child" : "root"), agentID, RegionInfo.RegionName); | 3222 | (isChildAgent ? "child" : "root"), avatar.Name, agentID, RegionInfo.RegionName); |
3220 | 3223 | ||
3221 | m_sceneGraph.removeUserCount(!isChildAgent); | 3224 | m_sceneGraph.removeUserCount(!isChildAgent); |
3222 | 3225 | ||
@@ -3794,41 +3797,41 @@ namespace OpenSim.Region.Framework.Scenes | |||
3794 | return m_authenticateHandler.TryChangeCiruitCode(oldcc, newcc); | 3797 | return m_authenticateHandler.TryChangeCiruitCode(oldcc, newcc); |
3795 | } | 3798 | } |
3796 | 3799 | ||
3797 | /// <summary> | 3800 | // /// <summary> |
3798 | /// The Grid has requested that we log-off a user. Log them off. | 3801 | // /// The Grid has requested that we log-off a user. Log them off. |
3799 | /// </summary> | 3802 | // /// </summary> |
3800 | /// <param name="AvatarID">Unique ID of the avatar to log-off</param> | 3803 | // /// <param name="AvatarID">Unique ID of the avatar to log-off</param> |
3801 | /// <param name="RegionSecret">SecureSessionID of the user, or the RegionSecret text when logging on to the grid</param> | 3804 | // /// <param name="RegionSecret">SecureSessionID of the user, or the RegionSecret text when logging on to the grid</param> |
3802 | /// <param name="message">message to display to the user. Reason for being logged off</param> | 3805 | // /// <param name="message">message to display to the user. Reason for being logged off</param> |
3803 | public void HandleLogOffUserFromGrid(UUID AvatarID, UUID RegionSecret, string message) | 3806 | // public void HandleLogOffUserFromGrid(UUID AvatarID, UUID RegionSecret, string message) |
3804 | { | 3807 | // { |
3805 | ScenePresence loggingOffUser = GetScenePresence(AvatarID); | 3808 | // ScenePresence loggingOffUser = GetScenePresence(AvatarID); |
3806 | if (loggingOffUser != null) | 3809 | // if (loggingOffUser != null) |
3807 | { | 3810 | // { |
3808 | UUID localRegionSecret = UUID.Zero; | 3811 | // UUID localRegionSecret = UUID.Zero; |
3809 | bool parsedsecret = UUID.TryParse(m_regInfo.regionSecret, out localRegionSecret); | 3812 | // bool parsedsecret = UUID.TryParse(m_regInfo.regionSecret, out localRegionSecret); |
3810 | 3813 | // | |
3811 | // Region Secret is used here in case a new sessionid overwrites an old one on the user server. | 3814 | // // Region Secret is used here in case a new sessionid overwrites an old one on the user server. |
3812 | // Will update the user server in a few revisions to use it. | 3815 | // // Will update the user server in a few revisions to use it. |
3813 | 3816 | // | |
3814 | if (RegionSecret == loggingOffUser.ControllingClient.SecureSessionId || (parsedsecret && RegionSecret == localRegionSecret)) | 3817 | // if (RegionSecret == loggingOffUser.ControllingClient.SecureSessionId || (parsedsecret && RegionSecret == localRegionSecret)) |
3815 | { | 3818 | // { |
3816 | m_sceneGridService.SendCloseChildAgentConnections(loggingOffUser.UUID, loggingOffUser.KnownRegionHandles); | 3819 | // m_sceneGridService.SendCloseChildAgentConnections(loggingOffUser.UUID, loggingOffUser.KnownRegionHandles); |
3817 | loggingOffUser.ControllingClient.Kick(message); | 3820 | // loggingOffUser.ControllingClient.Kick(message); |
3818 | // Give them a second to receive the message! | 3821 | // // Give them a second to receive the message! |
3819 | Thread.Sleep(1000); | 3822 | // Thread.Sleep(1000); |
3820 | loggingOffUser.ControllingClient.Close(); | 3823 | // loggingOffUser.ControllingClient.Close(); |
3821 | } | 3824 | // } |
3822 | else | 3825 | // else |
3823 | { | 3826 | // { |
3824 | m_log.Info("[USERLOGOFF]: System sending the LogOff user message failed to sucessfully authenticate"); | 3827 | // m_log.Info("[USERLOGOFF]: System sending the LogOff user message failed to sucessfully authenticate"); |
3825 | } | 3828 | // } |
3826 | } | 3829 | // } |
3827 | else | 3830 | // else |
3828 | { | 3831 | // { |
3829 | m_log.InfoFormat("[USERLOGOFF]: Got a logoff request for {0} but the user isn't here. The user might already have been logged out", AvatarID.ToString()); | 3832 | // m_log.InfoFormat("[USERLOGOFF]: Got a logoff request for {0} but the user isn't here. The user might already have been logged out", AvatarID.ToString()); |
3830 | } | 3833 | // } |
3831 | } | 3834 | // } |
3832 | 3835 | ||
3833 | /// <summary> | 3836 | /// <summary> |
3834 | /// Triggered when an agent crosses into this sim. Also happens on initial login. | 3837 | /// Triggered when an agent crosses into this sim. Also happens on initial login. |
@@ -3877,7 +3880,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
3877 | ILandObject nearestParcel = GetNearestAllowedParcel(cAgentData.AgentID, Constants.RegionSize / 2, Constants.RegionSize / 2); | 3880 | ILandObject nearestParcel = GetNearestAllowedParcel(cAgentData.AgentID, Constants.RegionSize / 2, Constants.RegionSize / 2); |
3878 | if (nearestParcel == null) | 3881 | if (nearestParcel == null) |
3879 | { | 3882 | { |
3880 | m_log.DebugFormat("[SCENE]: Denying root agent entry to {0}: no allowed parcel", cAgentData.AgentID); | 3883 | m_log.DebugFormat( |
3884 | "[SCENE]: Denying root agent entry to {0} in {1}: no allowed parcel", | ||
3885 | cAgentData.AgentID, RegionInfo.RegionName); | ||
3886 | |||
3881 | return false; | 3887 | return false; |
3882 | } | 3888 | } |
3883 | 3889 | ||