From c44df11dd4486e0f12b586e917b87eba751162c2 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 24 Mar 2018 18:27:34 +0100 Subject: mod_muc_mam: Save the MUC on recorded join stanzas --- plugins/mod_muc_mam.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_muc_mam.lua b/plugins/mod_muc_mam.lua index 8d69e83d..bf3cae45 100644 --- a/plugins/mod_muc_mam.lua +++ b/plugins/mod_muc_mam.lua @@ -341,7 +341,7 @@ end); if module:get_option_boolean("muc_log_presences", true) then module:hook("muc-occupant-joined", function (event) - save_to_history(event.room, st.stanza("presence", { from = event.nick })); + save_to_history(event.room, st.stanza("presence", { from = event.nick }):tag("x", { xmlns = "http://jabber.org/protocol/muc" })); end); module:hook("muc-occupant-left", function (event) save_to_history(event.room, st.stanza("presence", { type = "unavailable", from = event.nick })); -- cgit v1.2.3