Changeset

8725:ced09d7d7c96

mod_muc_mam: Save the MUC <x> on recorded join stanzas
author Kim Alvefur <zash@zash.se>
date Sat, 24 Mar 2018 18:27:34 +0100
parents 8724:cfcc78c50905
children 8726:fbb6751dbe85
files plugins/mod_muc_mam.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_muc_mam.lua	Sat Mar 24 18:16:08 2018 +0100
+++ b/plugins/mod_muc_mam.lua	Sat Mar 24 18:27:34 2018 +0100
@@ -341,7 +341,7 @@
 
 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 }));