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.slimupdates
							parent
							
								
									2c6606cee4
								
							
						
					
					
						commit
						dfc17a531f
					
				| 
						 | 
				
			
			@ -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<UUID> callingCardFolders)
 | 
			
		||||
        {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private void OnDenyFriendRequest(IClientAPI client, UUID agentID, UUID friendID, List<UUID> callingCardFolders)
 | 
			
		||||
        {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private void OnTerminateFriendship(IClientAPI client, UUID agentID, UUID exfriendID)
 | 
			
		||||
        {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private void OnGrantUserRights(IClientAPI remoteClient, UUID requester, UUID target, int rights)
 | 
			
		||||
        {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue