Mercurial > prosody-hg
comparison plugins/mod_muc_mam.lua @ 10814:e042b0c8b310 0.11
mod_muc_mam: Fix stanza id filter event name, fixes #1546
Nice typo
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 29 Apr 2020 18:04:05 +0200 |
| parents | 62ef68f95b6f |
| children | c432b7172fa3 |
comparison
equal
deleted
inserted
replaced
| 10783:950082c1669e | 10814:e042b0c8b310 |
|---|---|
| 307 return history[i]; | 307 return history[i]; |
| 308 end | 308 end |
| 309 return true; | 309 return true; |
| 310 end, 1); | 310 end, 1); |
| 311 | 311 |
| 312 module:hook("muc-broadcast-messages", function (event) | 312 module:hook("muc-broadcast-message", function (event) |
| 313 local room, stanza = event.room, event.stanza; | 313 local room, stanza = event.room, event.stanza; |
| 314 | 314 |
| 315 -- Filter out <stanza-id> that claim to be from us | 315 -- Filter out <stanza-id> that claim to be from us |
| 316 stanza:maptags(function (tag) | 316 stanza:maptags(function (tag) |
| 317 if tag.name == "stanza-id" and tag.attr.xmlns == xmlns_st_id | 317 if tag.name == "stanza-id" and tag.attr.xmlns == xmlns_st_id |
