Mercurial > prosody-modules
diff mod_mam/mod_mam.lua @ 1678:9ee56cc1be2c
mod_mam: Advertise feature in disco#info for account as per XEP-0313 >= 0.2
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 25 Apr 2015 15:43:59 +0200 |
parents | 3ac2b835c7b3 |
children | d20cfc5ba827 |
line wrap: on
line diff
--- a/mod_mam/mod_mam.lua Thu Apr 23 17:00:59 2015 +0200 +++ b/mod_mam/mod_mam.lua Sat Apr 25 15:43:59 2015 +0200 @@ -238,5 +238,9 @@ module:hook("message/bare", message_handler, 2); module:hook("message/full", message_handler, 2); -module:add_feature(xmlns_mam); +module:add_feature(xmlns_mam); -- COMPAT with XEP-0313 v 0.1 +module:hook("account-disco-info", function(event) + event.reply:tag("feature", {var=xmlns_mam}):up(); +end); +