aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authoronefang2021-07-07 09:20:02 +1000
committeronefang2021-07-07 09:20:02 +1000
commit791ce5167213b7b6d8a65f449a5378a93c99542e (patch)
tree972d0966848db93f8dd6a05448f2aa0ca9f264be /OpenSim
parentVArious small sledjchisl things. (diff)
downloadopensim-SC-791ce5167213b7b6d8a65f449a5378a93c99542e.zip
opensim-SC-791ce5167213b7b6d8a65f449a5378a93c99542e.tar.gz
opensim-SC-791ce5167213b7b6d8a65f449a5378a93c99542e.tar.bz2
opensim-SC-791ce5167213b7b6d8a65f449a5378a93c99542e.tar.xz
LessOhSilly threat level nonsense.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs17
1 files changed, 6 insertions, 11 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 8ca8344..5bf6990 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -464,6 +464,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
464 464
465 AllowedControlFlags functionControl = perms.AllowedControl; 465 AllowedControlFlags functionControl = perms.AllowedControl;
466 466
467 if (functionControl == AllowedControlFlags.ALL)
468 return String.Empty;
469
470 if (functionControl == 0)
471 return String.Format("{0} disabled in region configuration", function);
472
467 if (functionControl == AllowedControlFlags.THREATLEVEL) 473 if (functionControl == AllowedControlFlags.THREATLEVEL)
468 { 474 {
469 // Allow / disallow by threat level 475 // Allow / disallow by threat level
@@ -474,13 +480,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
474 "{0} permission denied. Allowed threat level is {1} but function threat level is {2}.", 480 "{0} permission denied. Allowed threat level is {1} but function threat level is {2}.",
475 function, m_MaxThreatLevel, level); 481 function, m_MaxThreatLevel, level);
476 } 482 }
477
478 if (functionControl == 0)
479 return String.Format("{0} disabled in region configuration", function);
480
481 if (functionControl == AllowedControlFlags.ALL)
482 return String.Empty;
483
484 if (((functionControl & AllowedControlFlags.OWNERUUID) != 0) && perms.AllowedOwners.Contains(m_host.OwnerID)) 483 if (((functionControl & AllowedControlFlags.OWNERUUID) != 0) && perms.AllowedOwners.Contains(m_host.OwnerID))
485 { 484 {
486 // prim owner is in the list of allowed owners 485 // prim owner is in the list of allowed owners
@@ -2248,8 +2247,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2248 /// Instead of using the LSL Dataserver event to pull notecard data line by line, 2247 /// Instead of using the LSL Dataserver event to pull notecard data line by line,
2249 /// this will simply read the entire notecard and return its data as a string. 2248 /// this will simply read the entire notecard and return its data as a string.
2250 /// 2249 ///
2251 /// Warning - due to the synchronous method this function uses to fetch assets, its use
2252 /// may be dangerous and unreliable while running in grid mode.
2253 /// </remarks> 2250 /// </remarks>
2254 /// <param name="name">Name of the notecard or its asset id</param> 2251 /// <param name="name">Name of the notecard or its asset id</param>
2255 /// <returns>Notecard text</returns> 2252 /// <returns>Notecard text</returns>
@@ -2275,8 +2272,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2275 /// Instead of using the LSL Dataserver event to pull notecard data, 2272 /// Instead of using the LSL Dataserver event to pull notecard data,
2276 /// this will simply read the number of note card lines and return this data as an integer. 2273 /// this will simply read the number of note card lines and return this data as an integer.
2277 /// 2274 ///
2278 /// Warning - due to the synchronous method this function uses to fetch assets, its use
2279 /// may be dangerous and unreliable while running in grid mode.
2280 /// </remarks> 2275 /// </remarks>
2281 /// <param name="name">Name of the notecard or its asset id</param> 2276 /// <param name="name">Name of the notecard or its asset id</param>
2282 /// <returns></returns> 2277 /// <returns></returns>