aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2010-02-26 21:37:07 +0000
committerMelanie2010-02-26 21:37:07 +0000
commitdfc17a531fe69dd1152127271d721ae8d4fccd8d (patch)
tree95eace3f4710ecde4e1777813d4d7cd61c2747b1
parentRemoved unnecessary debug message (diff)
downloadopensim-SC_OLD-dfc17a531fe69dd1152127271d721ae8d4fccd8d.zip
opensim-SC_OLD-dfc17a531fe69dd1152127271d721ae8d4fccd8d.tar.gz
opensim-SC_OLD-dfc17a531fe69dd1152127271d721ae8d4fccd8d.tar.bz2
opensim-SC_OLD-dfc17a531fe69dd1152127271d721ae8d4fccd8d.tar.xz
Add the client message handlers. The calling card handlers that are part of
the old friends module are omitted intentionally, as I believe those should be in a calling card module, not bundled with friends.
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
index d38ce68..f2ab174 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
@@ -261,6 +261,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
261 261
262 private void OnNewClient(IClientAPI client) 262 private void OnNewClient(IClientAPI client)
263 { 263 {
264 client.OnInstantMessage += OnInstantMessage;
265 client.OnApproveFriendRequest += OnApproveFriendRequest;
266 client.OnDenyFriendRequest += OnDenyFriendRequest;
267 client.OnTerminateFriendship += OnTerminateFriendship;
268
269 client.OnGrantUserRights += OnGrantUserRights;
270
264 client.OnLogout += OnLogout; 271 client.OnLogout += OnLogout;
265 client.OnEconomyDataRequest += SendPresence; 272 client.OnEconomyDataRequest += SendPresence;
266 273
@@ -421,5 +428,25 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
421 } 428 }
422 } 429 }
423 } 430 }
431
432 private void OnInstantMessage(IClientAPI client, GridInstantMessage im)
433 {
434 }
435
436 private void OnApproveFriendRequest(IClientAPI client, UUID agentID, UUID friendID, List<UUID> callingCardFolders)
437 {
438 }
439
440 private void OnDenyFriendRequest(IClientAPI client, UUID agentID, UUID friendID, List<UUID> callingCardFolders)
441 {
442 }
443
444 private void OnTerminateFriendship(IClientAPI client, UUID agentID, UUID exfriendID)
445 {
446 }
447
448 private void OnGrantUserRights(IClientAPI remoteClient, UUID requester, UUID target, int rights)
449 {
450 }
424 } 451 }
425} 452}