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/ApiManager.cs8
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs2
3 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/ApiManager.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/ApiManager.cs
index f7f2676..c57e72e 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/ApiManager.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/ApiManager.cs
@@ -39,7 +39,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
39 39
40 public string[] GetApis() 40 public string[] GetApis()
41 { 41 {
42 if(m_Apis.Count > 0) 42 if (m_Apis.Count > 0)
43 { 43 {
44 List<string> l = new List<string>(m_Apis.Keys); 44 List<string> l = new List<string>(m_Apis.Keys);
45 return l.ToArray(); 45 return l.ToArray();
@@ -53,10 +53,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
53 { 53 {
54 string name = t.ToString(); 54 string name = t.ToString();
55 int idx = name.LastIndexOf('.'); 55 int idx = name.LastIndexOf('.');
56 if(idx != -1) 56 if (idx != -1)
57 name = name.Substring(idx+1); 57 name = name.Substring(idx+1);
58 58
59 if(name.EndsWith("_Api")) 59 if (name.EndsWith("_Api"))
60 { 60 {
61 name = name.Substring(0, name.Length - 4); 61 name = name.Substring(0, name.Length - 4);
62 m_Apis[name] = t; 62 m_Apis[name] = t;
@@ -69,7 +69,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
69 69
70 public IScriptApi CreateApi(string api) 70 public IScriptApi CreateApi(string api)
71 { 71 {
72 if(!m_Apis.ContainsKey(api)) 72 if (!m_Apis.ContainsKey(api))
73 return null; 73 return null;
74 74
75 IScriptApi ret = (IScriptApi)(Activator.CreateInstance(m_Apis[api])); 75 IScriptApi ret = (IScriptApi)(Activator.CreateInstance(m_Apis[api]));
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
index 8c967a2..fcd1df8 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
@@ -95,7 +95,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
95 public AsyncCommandManager(IScriptEngine _ScriptEngine) 95 public AsyncCommandManager(IScriptEngine _ScriptEngine)
96 { 96 {
97 m_ScriptEngine = _ScriptEngine; 97 m_ScriptEngine = _ScriptEngine;
98 if(!m_Managers.Contains(this)) 98 if (!m_Managers.Contains(this))
99 m_Managers.Add(this); 99 m_Managers.Add(this);
100 100
101 ReadConfig(); 101 ReadConfig();
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 202fce7..57c1e02 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2553,7 +2553,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2553 LLUUID destId = LLUUID.Zero; 2553 LLUUID destId = LLUUID.Zero;
2554 LLUUID objId = LLUUID.Zero; 2554 LLUUID objId = LLUUID.Zero;
2555 2555
2556 if(!LLUUID.TryParse(destination, out destId)) 2556 if (!LLUUID.TryParse(destination, out destId))
2557 { 2557 {
2558 llSay(0, "Could not parse key " + destination); 2558 llSay(0, "Could not parse key " + destination);
2559 return; 2559 return;