aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs3
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs14
2 files changed, 14 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 39e24b4..39636b6 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -7227,9 +7227,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7227 else 7227 else
7228 reply = "UNKNOWN"; 7228 reply = "UNKNOWN";
7229 break; 7229 break;
7230 case 128: // SIM_RELEASE (not LSL conform, valid for OpenSim only)
7231 reply = m_ScriptEngine.World.GetSimulatorVersion();
7232 break;
7233 default: 7230 default:
7234 // ScriptSleep(1000); 7231 // ScriptSleep(1000);
7235 return UUID.Zero.ToString(); // Raise no event 7232 return UUID.Zero.ToString(); // Raise no event
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 7a9a648..c5e6359 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -30,6 +30,7 @@ using System.Collections.Generic;
30using System.Runtime.Remoting.Lifetime; 30using System.Runtime.Remoting.Lifetime;
31using OpenMetaverse; 31using OpenMetaverse;
32using Nini.Config; 32using Nini.Config;
33using OpenSim;
33using OpenSim.Framework.Console; 34using OpenSim.Framework.Console;
34using OpenSim.Region.Environment.Interfaces; 35using OpenSim.Region.Environment.Interfaces;
35using OpenSim.Region.Environment.Scenes; 36using OpenSim.Region.Environment.Scenes;
@@ -40,6 +41,7 @@ using OpenSim.Region.ScriptEngine.Interfaces;
40using OpenSim.Region.ScriptEngine.Shared.Api.Interfaces; 41using OpenSim.Region.ScriptEngine.Shared.Api.Interfaces;
41using TPFlags = OpenSim.Framework.Constants.TeleportFlags; 42using TPFlags = OpenSim.Framework.Constants.TeleportFlags;
42 43
44
43namespace OpenSim.Region.ScriptEngine.Shared.Api 45namespace OpenSim.Region.ScriptEngine.Shared.Api
44{ 46{
45 ////////////////////////////////////////////////////////////// 47 //////////////////////////////////////////////////////////////
@@ -720,6 +722,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
720 return String.Empty; 722 return String.Empty;
721 } 723 }
722 } 724 }
725
726 public string osGetSimulatorVersion()
727 {
728 // High because it can be used to target attacks to known weaknesses
729 // This would allow a new class of griefer scripts that don't even
730 // require their user to know what they are doing (see script
731 // kiddie)
732 //
733 CheckThreatLevel(ThreatLevel.High,"osGetSimulatorVersion");
734 m_host.AddScriptLPS(1);
735 return m_ScriptEngine.World.GetSimulatorVersion();
736 }
723 737
724 738
725 //for testing purposes only 739 //for testing purposes only