changeset 1679:c77e9522dc66

mod_mam_muc: Advertise MAM feature on bare JID room disco#info (only effective after prosody 57bc52f67564)
author Kim Alvefur <zash@zash.se>
date Sat, 25 Apr 2015 15:51:22 +0200 (2015-04-25)
parents 9ee56cc1be2c
children a9df1f7e273d 79ea92228101
files mod_mam_muc/mod_mam_muc.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);