Software /
code /
prosody-modules
Changeset
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 | 1677:2a4c632a24cb |
children | 1679:c77e9522dc66 |
files | mod_mam/mod_mam.lua |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
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); +