diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs index ddf9289..b9d6719 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs | |||
@@ -75,7 +75,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
75 | /// <param name="friendID">friend whose status changed</param> | 75 | /// <param name="friendID">friend whose status changed</param> |
76 | /// <param name="online">status</param> | 76 | /// <param name="online">status</param> |
77 | /// <returns></returns> | 77 | /// <returns></returns> |
78 | public bool StatusNotify(UUID userID, UUID friendID, bool online) | 78 | public bool StatusNotify(UUID friendID, UUID userID, bool online) |
79 | { | 79 | { |
80 | return LocalStatusNotification(friendID, userID, online); | 80 | return LocalStatusNotification(friendID, userID, online); |
81 | } | 81 | } |
@@ -279,7 +279,14 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
279 | foreach (FriendInfo f in kvp.Value) | 279 | foreach (FriendInfo f in kvp.Value) |
280 | ids.Add(f.Friend); | 280 | ids.Add(f.Friend); |
281 | UserAgentServiceConnector uConn = new UserAgentServiceConnector(kvp.Key); | 281 | UserAgentServiceConnector uConn = new UserAgentServiceConnector(kvp.Key); |
282 | uConn.StatusNotification(ids, userID, online); | 282 | List<UUID> friendsOnline = uConn.StatusNotification(ids, userID, online); |
283 | // need to debug this here | ||
284 | if (online) | ||
285 | { | ||
286 | IClientAPI client = LocateClientObject(userID); | ||
287 | if (client != null) | ||
288 | client.SendAgentOnline(friendsOnline.ToArray()); | ||
289 | } | ||
283 | } | 290 | } |
284 | } | 291 | } |
285 | } | 292 | } |