From dfc17a531fe69dd1152127271d721ae8d4fccd8d Mon Sep 17 00:00:00 2001 From: Melanie Date: Fri, 26 Feb 2010 21:37:07 +0000 Subject: 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. --- .../CoreModules/Avatar/Friends/FriendsModule.cs | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) 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 private void OnNewClient(IClientAPI client) { + client.OnInstantMessage += OnInstantMessage; + client.OnApproveFriendRequest += OnApproveFriendRequest; + client.OnDenyFriendRequest += OnDenyFriendRequest; + client.OnTerminateFriendship += OnTerminateFriendship; + + client.OnGrantUserRights += OnGrantUserRights; + client.OnLogout += OnLogout; client.OnEconomyDataRequest += SendPresence; @@ -421,5 +428,25 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends } } } + + private void OnInstantMessage(IClientAPI client, GridInstantMessage im) + { + } + + private void OnApproveFriendRequest(IClientAPI client, UUID agentID, UUID friendID, List callingCardFolders) + { + } + + private void OnDenyFriendRequest(IClientAPI client, UUID agentID, UUID friendID, List callingCardFolders) + { + } + + private void OnTerminateFriendship(IClientAPI client, UUID agentID, UUID exfriendID) + { + } + + private void OnGrantUserRights(IClientAPI remoteClient, UUID requester, UUID target, int rights) + { + } } } -- cgit v1.1