diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Friends/HGStatusNotifier.cs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/HGStatusNotifier.cs b/OpenSim/Region/CoreModules/Avatar/Friends/HGStatusNotifier.cs index 61c6a30..1fa4dd6 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/HGStatusNotifier.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/HGStatusNotifier.cs | |||
@@ -48,15 +48,18 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
48 | if (Util.ParseUniversalUserIdentifier(ids[0], out friendID, out tmp, out tmp, out tmp, out tmp)) | 48 | if (Util.ParseUniversalUserIdentifier(ids[0], out friendID, out tmp, out tmp, out tmp, out tmp)) |
49 | { | 49 | { |
50 | string friendsServerURI = m_FriendsModule.UserManagementModule.GetUserServerURL(friendID, "FriendsServerURI"); | 50 | string friendsServerURI = m_FriendsModule.UserManagementModule.GetUserServerURL(friendID, "FriendsServerURI"); |
51 | HGFriendsServicesConnector fConn = new HGFriendsServicesConnector(friendsServerURI); | 51 | if (friendsServerURI != string.Empty) |
52 | { | ||
53 | HGFriendsServicesConnector fConn = new HGFriendsServicesConnector(friendsServerURI); | ||
52 | 54 | ||
53 | List<UUID> friendsOnline = fConn.StatusNotification(ids, userID, online); | 55 | List<UUID> friendsOnline = fConn.StatusNotification(ids, userID, online); |
54 | 56 | ||
55 | if (online && friendsOnline.Count > 0) | 57 | if (online && friendsOnline.Count > 0) |
56 | { | 58 | { |
57 | IClientAPI client = m_FriendsModule.LocateClientObject(userID); | 59 | IClientAPI client = m_FriendsModule.LocateClientObject(userID); |
58 | if (client != null) | 60 | if (client != null) |
59 | client.SendAgentOnline(friendsOnline.ToArray()); | 61 | client.SendAgentOnline(friendsOnline.ToArray()); |
62 | } | ||
60 | } | 63 | } |
61 | } | 64 | } |
62 | } | 65 | } |