aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/SimianGrid/SimianFriendsServiceConnector.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/Connectors/SimianGrid/SimianFriendsServiceConnector.cs')
-rw-r--r--OpenSim/Services/Connectors/SimianGrid/SimianFriendsServiceConnector.cs27
1 files changed, 15 insertions, 12 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianFriendsServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianFriendsServiceConnector.cs
index abb98a3..b3ecc7e 100644
--- a/OpenSim/Services/Connectors/SimianGrid/SimianFriendsServiceConnector.cs
+++ b/OpenSim/Services/Connectors/SimianGrid/SimianFriendsServiceConnector.cs
@@ -76,21 +76,24 @@ namespace OpenSim.Services.Connectors.SimianGrid
76 76
77 public void Initialise(IConfigSource source) 77 public void Initialise(IConfigSource source)
78 { 78 {
79 IConfig assetConfig = source.Configs["FriendsService"]; 79 if (Simian.IsSimianEnabled(source, "FriendsServices"))
80 if (assetConfig == null)
81 { 80 {
82 m_log.Error("[FRIENDS CONNECTOR]: FriendsService missing from OpenSim.ini"); 81 IConfig assetConfig = source.Configs["FriendsService"];
83 throw new Exception("Friends connector init error"); 82 if (assetConfig == null)
84 } 83 {
84 m_log.Error("[FRIENDS CONNECTOR]: FriendsService missing from OpenSim.ini");
85 throw new Exception("Friends connector init error");
86 }
85 87
86 string serviceURI = assetConfig.GetString("FriendsServerURI"); 88 string serviceURI = assetConfig.GetString("FriendsServerURI");
87 if (String.IsNullOrEmpty(serviceURI)) 89 if (String.IsNullOrEmpty(serviceURI))
88 { 90 {
89 m_log.Info("[FRIENDS CONNECTOR]: No Server URI named in section FriendsService, skipping SimianFriendsServiceConnector"); 91 m_log.Error("[FRIENDS CONNECTOR]: No Server URI named in section FriendsService");
90 return; 92 throw new Exception("Friends connector init error");
91 } 93 }
92 94
93 m_serverUrl = serviceURI; 95 m_serverUrl = serviceURI;
96 }
94 } 97 }
95 98
96 #region IFriendsService 99 #region IFriendsService