diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 28 | ||||
-rw-r--r-- | OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | 6 | ||||
-rw-r--r-- | OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | 6 |
3 files changed, 38 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; |
diff --git a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs index c5b6a1e..fa01a42 100644 --- a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | |||
@@ -260,6 +260,8 @@ namespace OpenSim.Region.Examples.SimpleModule | |||
260 | public event PickInfoUpdate OnPickInfoUpdate; | 260 | public event PickInfoUpdate OnPickInfoUpdate; |
261 | public event AvatarNotesUpdate OnAvatarNotesUpdate; | 261 | public event AvatarNotesUpdate OnAvatarNotesUpdate; |
262 | 262 | ||
263 | public event MuteListRequest OnMuteListRequest; | ||
264 | |||
263 | #pragma warning restore 67 | 265 | #pragma warning restore 67 |
264 | 266 | ||
265 | private UUID myID = UUID.Random(); | 267 | private UUID myID = UUID.Random(); |
@@ -1062,6 +1064,10 @@ namespace OpenSim.Region.Examples.SimpleModule | |||
1062 | { | 1064 | { |
1063 | } | 1065 | } |
1064 | 1066 | ||
1067 | public void SendUseCachedMuteList() | ||
1068 | { | ||
1069 | } | ||
1070 | |||
1065 | #endregion | 1071 | #endregion |
1066 | } | 1072 | } |
1067 | } | 1073 | } |
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index e810b4e..4bf4341 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -366,6 +366,8 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
366 | public event PickInfoUpdate OnPickInfoUpdate; | 366 | public event PickInfoUpdate OnPickInfoUpdate; |
367 | public event AvatarNotesUpdate OnAvatarNotesUpdate; | 367 | public event AvatarNotesUpdate OnAvatarNotesUpdate; |
368 | 368 | ||
369 | public event MuteListRequest OnMuteListRequest; | ||
370 | |||
369 | #pragma warning restore 67 | 371 | #pragma warning restore 67 |
370 | 372 | ||
371 | #endregion | 373 | #endregion |
@@ -1062,6 +1064,10 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
1062 | { | 1064 | { |
1063 | } | 1065 | } |
1064 | 1066 | ||
1067 | public void SendUseCachedMuteList() | ||
1068 | { | ||
1069 | } | ||
1070 | |||
1065 | #endregion | 1071 | #endregion |
1066 | } | 1072 | } |
1067 | } | 1073 | } |