Mercurial > prosody-modules
changeset 4768:8bd36bba2292
mod_muc_offline_delivery: Less noisy, clearer, debug logging for notifications
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 09 Nov 2021 11:40:21 +0000 |
parents | ea93b204104e |
children | 00fc569e8333 |
files | mod_muc_offline_delivery/mod_muc_offline_delivery.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_muc_offline_delivery/mod_muc_offline_delivery.lua Tue Nov 09 11:39:18 2021 +0000 +++ b/mod_muc_offline_delivery/mod_muc_offline_delivery.lua Tue Nov 09 11:40:21 2021 +0000 @@ -18,10 +18,10 @@ local room = event.room; for jid, affiliation, data in room:each_affiliation() do --luacheck: ignore 213/affiliation local reserved_nickname = data and data.reserved_nickname; - module:log("debug", "Affiliated: %s, %s: %s", jid, reserved_nickname, data and data.offline_delivery); if reserved_nickname and data.offline_delivery then local is_absent = not room:get_occupant_by_nick(room.jid.."/"..reserved_nickname); if is_absent then + module:log("debug", "Forwarding message to offline member <%s>", jid); local msg = st.clone(event.stanza); msg.attr.to = jid; module:send(msg);