diff options
author | Melanie | 2010-02-25 23:34:58 +0000 |
---|---|---|
committer | Melanie | 2010-02-25 23:34:58 +0000 |
commit | 12432b175142b4e8cf5900913da82f5e64ef6895 (patch) | |
tree | 6313ce198128a796367289f795578cc2e7999212 /OpenSim/Services/Friends | |
parent | Implement local online/offline notifications (diff) | |
parent | Merge branch 'presence-refactor' of ssh://diva@opensimulator.org/var/git/open... (diff) | |
download | opensim-SC-12432b175142b4e8cf5900913da82f5e64ef6895.zip opensim-SC-12432b175142b4e8cf5900913da82f5e64ef6895.tar.gz opensim-SC-12432b175142b4e8cf5900913da82f5e64ef6895.tar.bz2 opensim-SC-12432b175142b4e8cf5900913da82f5e64ef6895.tar.xz |
Merge branch 'presence-refactor' of melanie@opensimulator.org:/var/git/opensim into presence-refactor
Diffstat (limited to 'OpenSim/Services/Friends')
-rw-r--r-- | OpenSim/Services/Friends/FriendsServiceBase.cs | 8 |
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 | } |