mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_muc_mam: Conditionally advertise MAM feature on rooms (fixes #1407)
This commit is contained in:
parent
fabd896892
commit
5976d3fc66
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue