diff options
author | onefang | 2019-05-19 21:24:15 +1000 |
---|---|---|
committer | onefang | 2019-05-19 21:24:15 +1000 |
commit | 5e4d6cab00cb29cd088ab7b62ab13aff103b64cb (patch) | |
tree | a9fbc62df9eb2d1d9ba2698d8552eae71eca20d8 /OpenSim/Addons/OfflineIM/OfflineIMRegionModule.cs | |
parent | Add a build script. (diff) | |
download | opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.zip opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.gz opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.bz2 opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.xz |
Dump OpenSim 0.9.0.1 into it's own branch.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Addons/OfflineIM/OfflineIMRegionModule.cs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/OpenSim/Addons/OfflineIM/OfflineIMRegionModule.cs b/OpenSim/Addons/OfflineIM/OfflineIMRegionModule.cs index 5340bcd..d8164e7 100644 --- a/OpenSim/Addons/OfflineIM/OfflineIMRegionModule.cs +++ b/OpenSim/Addons/OfflineIM/OfflineIMRegionModule.cs | |||
@@ -114,7 +114,6 @@ namespace OpenSim.OfflineIM | |||
114 | scene.ForEachClient(delegate(IClientAPI client) | 114 | scene.ForEachClient(delegate(IClientAPI client) |
115 | { | 115 | { |
116 | client.OnRetrieveInstantMessages -= RetrieveInstantMessages; | 116 | client.OnRetrieveInstantMessages -= RetrieveInstantMessages; |
117 | client.OnMuteListRequest -= OnMuteListRequest; | ||
118 | }); | 117 | }); |
119 | } | 118 | } |
120 | 119 | ||
@@ -162,7 +161,6 @@ namespace OpenSim.OfflineIM | |||
162 | private void OnNewClient(IClientAPI client) | 161 | private void OnNewClient(IClientAPI client) |
163 | { | 162 | { |
164 | client.OnRetrieveInstantMessages += RetrieveInstantMessages; | 163 | client.OnRetrieveInstantMessages += RetrieveInstantMessages; |
165 | client.OnMuteListRequest += OnMuteListRequest; | ||
166 | } | 164 | } |
167 | 165 | ||
168 | private void RetrieveInstantMessages(IClientAPI client) | 166 | private void RetrieveInstantMessages(IClientAPI client) |
@@ -194,20 +192,6 @@ namespace OpenSim.OfflineIM | |||
194 | } | 192 | } |
195 | } | 193 | } |
196 | 194 | ||
197 | // Apparently this is needed in order for the viewer to request the IMs. | ||
198 | private void OnMuteListRequest(IClientAPI client, uint crc) | ||
199 | { | ||
200 | m_log.DebugFormat("[OfflineIM.V2] Got mute list request for crc {0}", crc); | ||
201 | string filename = "mutes" + client.AgentId.ToString(); | ||
202 | |||
203 | IXfer xfer = client.Scene.RequestModuleInterface<IXfer>(); | ||
204 | if (xfer != null) | ||
205 | { | ||
206 | xfer.AddNewFile(filename, new Byte[0]); | ||
207 | client.SendMuteListUpdate(filename); | ||
208 | } | ||
209 | } | ||
210 | |||
211 | private void UndeliveredMessage(GridInstantMessage im) | 195 | private void UndeliveredMessage(GridInstantMessage im) |
212 | { | 196 | { |
213 | if (im.dialog != (byte)InstantMessageDialog.MessageFromObject && | 197 | if (im.dialog != (byte)InstantMessageDialog.MessageFromObject && |