diff options
author | UbitUmarov | 2017-01-27 13:10:57 +0000 |
---|---|---|
committer | UbitUmarov | 2017-01-27 13:10:57 +0000 |
commit | 4b9c94a3aa57faa2c18c1e9a4570f9e10ef3f84a (patch) | |
tree | 475958921446d968355279beb19569cfaa902eb7 /OpenSim/Region/OptionalModules | |
parent | Permissions modules where made NONShared modules. Make them so, removing inc... (diff) | |
download | opensim-SC_OLD-4b9c94a3aa57faa2c18c1e9a4570f9e10ef3f84a.zip opensim-SC_OLD-4b9c94a3aa57faa2c18c1e9a4570f9e10ef3f84a.tar.gz opensim-SC_OLD-4b9c94a3aa57faa2c18c1e9a4570f9e10ef3f84a.tar.bz2 opensim-SC_OLD-4b9c94a3aa57faa2c18c1e9a4570f9e10ef3f84a.tar.xz |
bug fix: wrong enabled check
Diffstat (limited to 'OpenSim/Region/OptionalModules')
-rw-r--r-- | OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs index 6f2eedc..af32d05 100644 --- a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs +++ b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs | |||
@@ -78,9 +78,8 @@ namespace OpenSim.Region.OptionalModules | |||
78 | public void AddRegion(Scene scene) | 78 | public void AddRegion(Scene scene) |
79 | { | 79 | { |
80 | if (!m_enabled) | 80 | if (!m_enabled) |
81 | { | ||
82 | return; | 81 | return; |
83 | } | 82 | |
84 | m_scene = scene; | 83 | m_scene = scene; |
85 | scene.Permissions.OnRezObject += CanRezObject; | 84 | scene.Permissions.OnRezObject += CanRezObject; |
86 | scene.Permissions.OnObjectEntry += CanObjectEnter; | 85 | scene.Permissions.OnObjectEntry += CanObjectEnter; |
@@ -91,10 +90,8 @@ namespace OpenSim.Region.OptionalModules | |||
91 | 90 | ||
92 | public void RemoveRegion(Scene scene) | 91 | public void RemoveRegion(Scene scene) |
93 | { | 92 | { |
94 | if (m_enabled) | 93 | if (!m_enabled) |
95 | { | ||
96 | return; | 94 | return; |
97 | } | ||
98 | 95 | ||
99 | m_scene.Permissions.OnRezObject -= CanRezObject; | 96 | m_scene.Permissions.OnRezObject -= CanRezObject; |
100 | m_scene.Permissions.OnObjectEntry -= CanObjectEnter; | 97 | m_scene.Permissions.OnObjectEntry -= CanObjectEnter; |