diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs index de19f4e..b919f8d 100644 --- a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs | |||
@@ -25,21 +25,13 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | using System; | 27 | using System; |
28 | using System.Collections; | ||
29 | using System.Collections.Generic; | ||
30 | using System.Runtime.Remoting.Lifetime; | ||
31 | using System.Text; | ||
32 | using System.Threading; | ||
33 | using Axiom.Math; | 28 | using Axiom.Math; |
34 | using libsecondlife; | 29 | using libsecondlife; |
35 | using OpenSim.Framework; | 30 | using Nini.Config; |
36 | using OpenSim.Framework.Communications; | 31 | using OpenSim.Framework.Console; |
37 | using OpenSim.Region.Environment.Interfaces; | 32 | using OpenSim.Region.Environment.Interfaces; |
38 | using OpenSim.Region.Environment.Scenes; | 33 | using OpenSim.Region.Environment.Scenes; |
39 | using OpenSim.Region.ScriptEngine.Common; | 34 | |
40 | using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; | ||
41 | using OpenSim.Region.Environment; | ||
42 | using OpenSim.Region.Environment.Modules.LandManagement; | ||
43 | //using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL; | 35 | //using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL; |
44 | 36 | ||
45 | namespace OpenSim.Region.ScriptEngine.Common | 37 | namespace OpenSim.Region.ScriptEngine.Common |
@@ -408,7 +400,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
408 | public bool osConsoleCommand(string command) | 400 | public bool osConsoleCommand(string command) |
409 | { | 401 | { |
410 | m_host.AddScriptLPS(1); | 402 | m_host.AddScriptLPS(1); |
411 | Nini.Config.IConfigSource config = new Nini.Config.IniConfigSource(Application.iniFilePath); | 403 | IConfigSource config = new IniConfigSource(Application.iniFilePath); |
412 | if (config.Configs["LL-Functions"] == null) | 404 | if (config.Configs["LL-Functions"] == null) |
413 | config.AddConfig("LL-Functions"); | 405 | config.AddConfig("LL-Functions"); |
414 | 406 | ||
@@ -416,7 +408,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
416 | { | 408 | { |
417 | if (World.PermissionsMngr.CanRunConsoleCommand(m_host.OwnerID)) | 409 | if (World.PermissionsMngr.CanRunConsoleCommand(m_host.OwnerID)) |
418 | { | 410 | { |
419 | OpenSim.Framework.Console.MainConsole.Instance.RunCommand(command); | 411 | MainConsole.Instance.RunCommand(command); |
420 | return true; | 412 | return true; |
421 | } | 413 | } |
422 | return false; | 414 | return false; |