* Fixing the SimianGrid friend connector enabled detection since the friends module uses a different pattern in the .ini file

slimupdates
John Hurliman 2010-03-16 10:40:15 -07:00
parent 28e4302eb6
commit d722519b31
1 changed files with 9 additions and 1 deletions

View File

@ -76,7 +76,15 @@ namespace OpenSim.Services.Connectors.SimianGrid
public void Initialise(IConfigSource source) public void Initialise(IConfigSource source)
{ {
if (Simian.IsSimianEnabled(source, "FriendsServices", this.Name)) bool isSimianEnabled = false;
if (source.Configs["Friends"] != null)
{
string module = source.Configs["Friends"].GetString("Connector");
isSimianEnabled = !String.IsNullOrEmpty(module) && module.EndsWith(this.Name);
}
if (isSimianEnabled)
{ {
IConfig assetConfig = source.Configs["FriendsService"]; IConfig assetConfig = source.Configs["FriendsService"];
if (assetConfig == null) if (assetConfig == null)