mod_mam_muc: Advertise MAM feature on bare JID room disco#info (only effective after prosody 57bc52f67564)
authorKim Alvefur <zash@zash.se>
Sat, 25 Apr 2015 15:51:22 +0200
changeset 1683 c77e9522dc66
parent 1682 9ee56cc1be2c
child 1684 a9df1f7e273d
child 1685 79ea92228101
mod_mam_muc: Advertise MAM feature on bare JID room disco#info (only effective after prosody 57bc52f67564)
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);