aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
diff options
context:
space:
mode:
authorMelanie Thielker2009-03-28 04:21:44 +0000
committerMelanie Thielker2009-03-28 04:21:44 +0000
commit4f6c4378dad0f4122bdab9270fd7aaf3c60beb39 (patch)
tree1d36ab614a6ec70716a9d4afb2d1190eebea08d9 /OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
parentFix the plumbing in the offline message module. (diff)
downloadopensim-SC_OLD-4f6c4378dad0f4122bdab9270fd7aaf3c60beb39.zip
opensim-SC_OLD-4f6c4378dad0f4122bdab9270fd7aaf3c60beb39.tar.gz
opensim-SC_OLD-4f6c4378dad0f4122bdab9270fd7aaf3c60beb39.tar.bz2
opensim-SC_OLD-4f6c4378dad0f4122bdab9270fd7aaf3c60beb39.tar.xz
Add mute list request event and dummy response
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs28
1 files changed, 26 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index 07f72c3..b65b3f9 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -303,6 +303,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
303 private PickInfoUpdate handlerPickInfoUpdate; 303 private PickInfoUpdate handlerPickInfoUpdate;
304 private AvatarNotesUpdate handlerAvatarNotesUpdate; 304 private AvatarNotesUpdate handlerAvatarNotesUpdate;
305 305
306 private MuteListRequest handlerMuteListRequest;
307
306 private readonly IGroupsModule m_GroupsModule; 308 private readonly IGroupsModule m_GroupsModule;
307 309
308 //private TerrainUnacked handlerUnackedTerrain = null; 310 //private TerrainUnacked handlerUnackedTerrain = null;
@@ -1093,6 +1095,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1093 public event PickInfoUpdate OnPickInfoUpdate; 1095 public event PickInfoUpdate OnPickInfoUpdate;
1094 public event AvatarNotesUpdate OnAvatarNotesUpdate; 1096 public event AvatarNotesUpdate OnAvatarNotesUpdate;
1095 1097
1098 public event MuteListRequest OnMuteListRequest;
1099
1096 public void ActivateGesture(UUID assetId, UUID gestureId) 1100 public void ActivateGesture(UUID assetId, UUID gestureId)
1097 { 1101 {
1098 } 1102 }
@@ -6822,8 +6826,18 @@ namespace OpenSim.Region.ClientStack.LindenUDP
6822 //m_log.Warn("[CLIENT]: unhandled TransferAbort packet"); 6826 //m_log.Warn("[CLIENT]: unhandled TransferAbort packet");
6823 break; 6827 break;
6824 case PacketType.MuteListRequest: 6828 case PacketType.MuteListRequest:
6825 // TODO: handle this packet 6829 MuteListRequestPacket muteListRequest =
6826 //m_log.Warn("[CLIENT]: unhandled MuteListRequest packet"); 6830 (MuteListRequestPacket)Pack;
6831
6832 handlerMuteListRequest = OnMuteListRequest;
6833 if (handlerMuteListRequest != null)
6834 {
6835 handlerMuteListRequest(this, muteListRequest.MuteData.MuteCRC);
6836 }
6837 else
6838 {
6839 SendUseCachedMuteList();
6840 }
6827 break; 6841 break;
6828 case PacketType.UseCircuitCode: 6842 case PacketType.UseCircuitCode:
6829 // Don't display this one, we handle it at a lower level 6843 // Don't display this one, we handle it at a lower level
@@ -8676,6 +8690,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
8676 OutPacket(createGroupReply, ThrottleOutPacketType.Task); 8690 OutPacket(createGroupReply, ThrottleOutPacketType.Task);
8677 } 8691 }
8678 8692
8693 public void SendUseCachedMuteList()
8694 {
8695 UseCachedMuteListPacket useCachedMuteList = (UseCachedMuteListPacket)PacketPool.Instance.GetPacket(PacketType.UseCachedMuteList);
8696
8697 useCachedMuteList.AgentData = new UseCachedMuteListPacket.AgentDataBlock();
8698 useCachedMuteList.AgentData.AgentID = AgentId;
8699
8700 OutPacket(useCachedMuteList, ThrottleOutPacketType.Task);
8701 }
8702
8679 public string Report() 8703 public string Report()
8680 { 8704 {
8681 LLPacketHandler handler = (LLPacketHandler) m_PacketHandler; 8705 LLPacketHandler handler = (LLPacketHandler) m_PacketHandler;