diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs index 30eed40..1d6cb6d 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs | |||
@@ -446,9 +446,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
446 | LSShoutError("LightShare functions are not enabled."); | 446 | LSShoutError("LightShare functions are not enabled."); |
447 | return 0; | 447 | return 0; |
448 | } | 448 | } |
449 | 449 | if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && World.GetScenePresence(m_host.OwnerID).GodLevel < 200) | |
450 | ScenePresence sp = World.GetScenePresence(m_host.OwnerID); | ||
451 | if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && (sp == null || sp.GodLevel < 200)) | ||
452 | { | 450 | { |
453 | LSShoutError("lsSetWindlightScene can only be used by estate managers or owners."); | 451 | LSShoutError("lsSetWindlightScene can only be used by estate managers or owners."); |
454 | return 0; | 452 | return 0; |
@@ -476,9 +474,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
476 | LSShoutError("LightShare functions are not enabled."); | 474 | LSShoutError("LightShare functions are not enabled."); |
477 | return; | 475 | return; |
478 | } | 476 | } |
479 | 477 | if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && World.GetScenePresence(m_host.OwnerID).GodLevel < 200) | |
480 | ScenePresence sp = World.GetScenePresence(m_host.OwnerID); | ||
481 | if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && (sp == null || sp.GodLevel < 200)) | ||
482 | { | 478 | { |
483 | LSShoutError("lsSetWindlightScene can only be used by estate managers or owners."); | 479 | LSShoutError("lsSetWindlightScene can only be used by estate managers or owners."); |
484 | return; | 480 | return; |
@@ -501,9 +497,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
501 | LSShoutError("LightShare functions are not enabled."); | 497 | LSShoutError("LightShare functions are not enabled."); |
502 | return 0; | 498 | return 0; |
503 | } | 499 | } |
504 | 500 | if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && World.GetScenePresence(m_host.OwnerID).GodLevel < 200) | |
505 | ScenePresence sp = World.GetScenePresence(m_host.OwnerID); | ||
506 | if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && (sp == null || sp.GodLevel < 200)) | ||
507 | { | 501 | { |
508 | LSShoutError("lsSetWindlightSceneTargeted can only be used by estate managers or owners."); | 502 | LSShoutError("lsSetWindlightSceneTargeted can only be used by estate managers or owners."); |
509 | return 0; | 503 | return 0; |