Software /
code /
prosody
Comparison
plugins/mod_mam/mod_mam.lua @ 10567:3df479098696 0.11
mod_mam: Fix rebase mistake [luacheck]
The 'err' was there in trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 24 Dec 2019 01:01:05 +0100 |
parent | 10525:9cf7d9761ca2 |
child | 10568:b6f93babebe8 |
child | 10682:62ef68f95b6f |
comparison
equal
deleted
inserted
replaced
10566:f4d12b1434c6 | 10567:3df479098696 |
---|---|
295 -- Check with the users preferences | 295 -- Check with the users preferences |
296 if shall_store(store_user, with) then | 296 if shall_store(store_user, with) then |
297 log("debug", "Archiving stanza: %s", stanza:top_tag()); | 297 log("debug", "Archiving stanza: %s", stanza:top_tag()); |
298 | 298 |
299 -- And stash it | 299 -- And stash it |
300 local ok = archive:append(store_user, nil, clone_for_storage, time_now(), with); | 300 local ok, err = archive:append(store_user, nil, clone_for_storage, time_now(), with); |
301 if ok then | 301 if ok then |
302 local clone_for_other_handlers = st.clone(stanza); | 302 local clone_for_other_handlers = st.clone(stanza); |
303 local id = ok; | 303 local id = ok; |
304 clone_for_other_handlers:tag("stanza-id", { xmlns = xmlns_st_id, by = store_user.."@"..host, id = id }):up(); | 304 clone_for_other_handlers:tag("stanza-id", { xmlns = xmlns_st_id, by = store_user.."@"..host, id = id }):up(); |
305 event.stanza = clone_for_other_handlers; | 305 event.stanza = clone_for_other_handlers; |