diff options
author | Justin Clark-Casey (justincc) | 2010-03-12 22:49:16 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-03-12 22:49:16 +0000 |
commit | 6828d8ecbefb7f48c4ce93d497e16d3df25bc9a5 (patch) | |
tree | 92e96744a5513db89b74ff8cd6e8f443e0c874f7 /OpenSim/Services/Connectors/SimianGrid/SimianGrid.cs | |
parent | refactor: move RezSingleAttachmentFromInventory() from SceneGraph to Attachme... (diff) | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-6828d8ecbefb7f48c4ce93d497e16d3df25bc9a5.zip opensim-SC-6828d8ecbefb7f48c4ce93d497e16d3df25bc9a5.tar.gz opensim-SC-6828d8ecbefb7f48c4ce93d497e16d3df25bc9a5.tar.bz2 opensim-SC-6828d8ecbefb7f48c4ce93d497e16d3df25bc9a5.tar.xz |
Merge branch 'master' of ssh://justincc@opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Services/Connectors/SimianGrid/SimianGrid.cs')
-rw-r--r-- | OpenSim/Services/Connectors/SimianGrid/SimianGrid.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianGrid.cs b/OpenSim/Services/Connectors/SimianGrid/SimianGrid.cs index 41ed2f1..c3de98e 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianGrid.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianGrid.cs | |||
@@ -25,7 +25,23 @@ | |||
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 | 27 | ||
28 | using System; | ||
28 | using Mono.Addins; | 29 | using Mono.Addins; |
30 | using Nini.Config; | ||
29 | 31 | ||
30 | [assembly: Addin("SimianGrid", "1.0")] | 32 | [assembly: Addin("SimianGrid", "1.0")] |
31 | [assembly: AddinDependency("OpenSim", "0.5")] | 33 | [assembly: AddinDependency("OpenSim", "0.5")] |
34 | |||
35 | public static class Simian | ||
36 | { | ||
37 | public static bool IsSimianEnabled(IConfigSource config, string moduleName) | ||
38 | { | ||
39 | if (config.Configs["Modules"] != null) | ||
40 | { | ||
41 | string module = config.Configs["Modules"].GetString("AuthenticationServices"); | ||
42 | return !String.IsNullOrEmpty(module) && module.Contains("Simian"); | ||
43 | } | ||
44 | |||
45 | return false; | ||
46 | } | ||
47 | } \ No newline at end of file | ||