aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_muc_mam.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_muc_mam.lua')
-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 }));