Software /
code /
prosody
Comparison
plugins/mod_muc_mam.lua @ 10526:28c8e09fb3cd 0.11
mod_muc_mam: Log error when unable to store stanza (fix #1480) [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 23 Dec 2019 23:32:49 +0100 |
parent | 10029:2c8f674b9243 |
child | 10561:29b3eb95c268 |
comparison
equal
deleted
inserted
replaced
10525:9cf7d9761ca2 | 10526:28c8e09fb3cd |
---|---|
355 local id = archive:append(room_node, nil, stored_stanza, time_now(), with); | 355 local id = archive:append(room_node, nil, stored_stanza, time_now(), with); |
356 | 356 |
357 if id then | 357 if id then |
358 schedule_cleanup(room_node); | 358 schedule_cleanup(room_node); |
359 stanza:add_direct_child(st.stanza("stanza-id", { xmlns = xmlns_st_id, by = self.jid, id = id })); | 359 stanza:add_direct_child(st.stanza("stanza-id", { xmlns = xmlns_st_id, by = self.jid, id = id })); |
360 else | |
361 module:log("error", "Could not archive stanza: %s", err); | |
360 end | 362 end |
361 end | 363 end |
362 | 364 |
363 module:hook("muc-add-history", function (event) | 365 module:hook("muc-add-history", function (event) |
364 local room, stanza = event.room, event.stanza; | 366 local room, stanza = event.room, event.stanza; |