aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Friends/FriendsServiceBase.cs
diff options
context:
space:
mode:
authorDiva Canto2010-02-25 16:11:04 -0800
committerDiva Canto2010-02-25 16:11:04 -0800
commit679ad9575083370204a6d83e9933323c9f60ae45 (patch)
treec2701a8f894e127a0b1ad32802bffe3374bd378c /OpenSim/Services/Friends/FriendsServiceBase.cs
parentImplement initial online notifications (diff)
downloadopensim-SC-679ad9575083370204a6d83e9933323c9f60ae45.zip
opensim-SC-679ad9575083370204a6d83e9933323c9f60ae45.tar.gz
opensim-SC-679ad9575083370204a6d83e9933323c9f60ae45.tar.bz2
opensim-SC-679ad9575083370204a6d83e9933323c9f60ae45.tar.xz
List of friends now retrieved upon login. Configured and tested in standalone only.
Diffstat (limited to 'OpenSim/Services/Friends/FriendsServiceBase.cs')
-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 }