diff mod_mam_muc/mod_mam_muc.lua @ 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
parents 66d67f0bae16
children 1a8c791d365f
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);