Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 8482:8b2219011386
MUC: Check delay tags when they are received instead of when they are sent
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 21 Dec 2017 13:48:21 +0100 |
| parents | d546815e555e |
| children | c50101b527bf |
comparison
equal
deleted
inserted
replaced
| 8481:d546815e555e | 8482:8b2219011386 |
|---|---|
| 170 self:broadcast(stanza); | 170 self:broadcast(stanza); |
| 171 return true; | 171 return true; |
| 172 end | 172 end |
| 173 | 173 |
| 174 -- Strip delay tags claiming to be from us | 174 -- Strip delay tags claiming to be from us |
| 175 module:hook("muc-broadcast-message", function (event) | 175 module:hook("muc-occupant-message", function (event) |
| 176 local stanza = event.stanza; | 176 local stanza = event.stanza; |
| 177 local to = stanza.attr.to; | 177 local to = stanza.attr.to; |
| 178 local room_jid = self.jid; | 178 local room_jid = self.jid; |
| 179 | 179 |
| 180 stanza:maptags(function (child) | 180 stanza:maptags(function (child) |
