# HG changeset patch # User Kim Alvefur # Date 1429969882 -7200 # Node ID c77e9522dc66b89ad3b9999ca6ba3b392985c6f3 # Parent 9ee56cc1be2c40b347827b26da1956344d06154a mod_mam_muc: Advertise MAM feature on bare JID room disco#info (only effective after prosody 57bc52f67564) diff -r 9ee56cc1be2c -r c77e9522dc66 mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Sat Apr 25 15:43:59 2015 +0200 +++ b/mod_mam_muc/mod_mam_muc.lua Sat Apr 25 15:51:22 2015 +0200 @@ -360,3 +360,7 @@ -- And role/affiliation changes? module:add_feature(xmlns_mam); + +module:hook("muc-disco#info", function(event) + event.reply:tag("feature", {var=xmlns_mam}):up(); +end);