aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Friends
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Services/Friends/FriendsServiceBase.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Services/Friends/FriendsServiceBase.cs b/OpenSim/Services/Friends/FriendsServiceBase.cs
index cabe944..9858972 100644
--- a/OpenSim/Services/Friends/FriendsServiceBase.cs
+++ b/OpenSim/Services/Friends/FriendsServiceBase.cs
@@ -71,12 +71,14 @@ namespace OpenSim.Services.Friends
71 // 71 //
72 // We tried, but this doesn't exist. We can't proceed. 72 // We tried, but this doesn't exist. We can't proceed.
73 // 73 //
74 if (dllName.Equals(String.Empty)) 74 if (String.Empty.Equals(dllName))
75 throw new Exception("No StorageProvider configured"); 75 throw new Exception("No StorageProvider configured");
76 76
77 string realm = friendsConfig.GetString("Realm", "Friends"); 77 string realm = "Friends";
78 if (friendsConfig != null)
79 realm = friendsConfig.GetString("Realm", realm);
78 80
79 m_Database = LoadPlugin<IFriendsData>(dllName, new Object[] {connString, realm}); 81 m_Database = LoadPlugin<IFriendsData>(dllName, new Object[] { connString, realm });
80 if (m_Database == null) 82 if (m_Database == null)
81 throw new Exception("Could not find a storage interface in the given module"); 83 throw new Exception("Could not find a storage interface in the given module");
82 } 84 }