diff options
author | Kim Alvefur <zash@zash.se> | 2018-03-24 18:27:34 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-03-24 18:27:34 +0100 |
commit | f1254ad1494df964cdbf3a5d6641fe857fb1055b (patch) | |
tree | 29cae00dd5b6e7e75ba306522419579444b61856 /plugins | |
parent | a4eef2a1a555d1531a69d2380cab3cf4a201d306 (diff) | |
download | prosody-f1254ad1494df964cdbf3a5d6641fe857fb1055b.tar.gz prosody-f1254ad1494df964cdbf3a5d6641fe857fb1055b.zip |
mod_muc_mam: Save the MUC <x> on recorded join stanzas
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_muc_mam.lua | 2 |
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 })); |