# HG changeset patch # User Kim Alvefur # Date 1429969439 -7200 # Node ID 9ee56cc1be2c40b347827b26da1956344d06154a # Parent 2a4c632a24cb33cd595fcabe232ef0c9a58aab1d mod_mam: Advertise feature in disco#info for account as per XEP-0313 >= 0.2 diff -r 2a4c632a24cb -r 9ee56cc1be2c mod_mam/mod_mam.lua --- 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); +