Mercurial > prosody-hg
comparison plugins/mod_muc_mam.lua @ 9843:17060708d0eb 0.11
mod_muc_mam: Add comment about the tricks done with the 'with' field
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 04 Mar 2019 12:58:20 +0100 |
| parents | 6f39be2e0be5 |
| children | 774b2ce62318 78885b1bbb91 |
comparison
equal
deleted
inserted
replaced
| 9842:6f39be2e0be5 | 9843:17060708d0eb |
|---|---|
| 339 end | 339 end |
| 340 | 340 |
| 341 -- Policy check | 341 -- Policy check |
| 342 if not archiving_enabled(self) then return end -- Don't log | 342 if not archiving_enabled(self) then return end -- Don't log |
| 343 | 343 |
| 344 -- Save the type in the 'with' field, allows storing presence without conflicts | |
| 344 local with = stanza.name | 345 local with = stanza.name |
| 345 if stanza.attr.type then | 346 if stanza.attr.type then |
| 346 with = with .. "<" .. stanza.attr.type | 347 with = with .. "<" .. stanza.attr.type |
| 347 end | 348 end |
| 348 | 349 |
