aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-24 18:27:34 +0100
committerKim Alvefur <zash@zash.se>2018-03-24 18:27:34 +0100
commitf1254ad1494df964cdbf3a5d6641fe857fb1055b (patch)
tree29cae00dd5b6e7e75ba306522419579444b61856
parenta4eef2a1a555d1531a69d2380cab3cf4a201d306 (diff)
downloadprosody-f1254ad1494df964cdbf3a5d6641fe857fb1055b.tar.gz
prosody-f1254ad1494df964cdbf3a5d6641fe857fb1055b.zip
mod_muc_mam: Save the MUC <x> on recorded join stanzas
-rw-r--r--plugins/mod_muc_mam.lua2
1 files changed, 1 insertions, 1 deletions
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 }));