diff options
author | Kim Alvefur <zash@zash.se> | 2019-08-10 16:01:42 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-08-10 16:01:42 +0200 |
commit | 3d8f6c593b170aeb941fb1af8120f4acd3f6c640 (patch) | |
tree | 22460166cb7b452f5f235ea7f8d6c7705111c700 /plugins | |
parent | b6ba263f15f7a5eaf6e2df2980d7c9d3b2cc9528 (diff) | |
download | prosody-3d8f6c593b170aeb941fb1af8120f4acd3f6c640.tar.gz prosody-3d8f6c593b170aeb941fb1af8120f4acd3f6c640.zip |
mod_muc_mam: Conditionally advertise MAM feature on rooms (fixes #1407)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_muc_mam.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_muc_mam.lua b/plugins/mod_muc_mam.lua index 387f6a5d..7fc9fabf 100644 --- a/plugins/mod_muc_mam.lua +++ b/plugins/mod_muc_mam.lua @@ -428,7 +428,9 @@ end module:add_feature(xmlns_mam); module:hook("muc-disco#info", function(event) - event.reply:tag("feature", {var=xmlns_mam}):up(); + if archiving_enabled(event.room) then + event.reply:tag("feature", {var=xmlns_mam}):up(); + end end); -- Cleanup |