Software /
code /
prosody-modules
Comparison
mod_mam/mod_mam.lua @ 1094:158680bff642
mod_mam: Stamp <archived> on incoming stanzas after archiving them
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 30 Jun 2013 00:40:37 +0200 |
parent | 1093:959e38a41a2e |
child | 1111:bdbf76730f49 |
comparison
equal
deleted
inserted
replaced
1093:959e38a41a2e | 1094:158680bff642 |
---|---|
309 when = when, | 309 when = when, |
310 with = target_bare, | 310 with = target_bare, |
311 resource = target_resource, | 311 resource = target_resource, |
312 stanza = st.preserialize(stanza) | 312 stanza = st.preserialize(stanza) |
313 }); | 313 }); |
314 --[[ This was dropped from the spec | 314 if ok and not c2s then |
315 if ok then | 315 stanza:tag("archived", { xmlns = xmlns_mam, by = jid_bare(orig_to), id = id }):up(); |
316 stanza:tag("archived", { xmlns = xmlns_mam, by = host, id = id }):up(); | 316 end |
317 end | |
318 --]] | |
319 else | 317 else |
320 module:log("debug", "Not archiving stanza: %s", stanza:top_tag()); | 318 module:log("debug", "Not archiving stanza: %s", stanza:top_tag()); |
321 end | 319 end |
322 end | 320 end |
323 | 321 |