aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commitc44df11dd4486e0f12b586e917b87eba751162c2 (patch)
tree29cae00dd5b6e7e75ba306522419579444b61856 /plugins
parent28cfb73f59af94f63198065f3a2802a0cb803975 (diff)
downloadprosody-c44df11dd4486e0f12b586e917b87eba751162c2.tar.gz
prosody-c44df11dd4486e0f12b586e917b87eba751162c2.zip
mod_muc_mam: Save the MUC <x> on recorded join stanzas
Diffstat (limited to 'plugins')
-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 }));