Mercurial > prosody-modules
comparison 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 |
comparison
equal
deleted
inserted
replaced
1677:2a4c632a24cb | 1678:9ee56cc1be2c |
---|---|
236 module:hook("pre-message/full", c2s_message_handler, 2); | 236 module:hook("pre-message/full", c2s_message_handler, 2); |
237 -- Stanszas to local clients | 237 -- Stanszas to local clients |
238 module:hook("message/bare", message_handler, 2); | 238 module:hook("message/bare", message_handler, 2); |
239 module:hook("message/full", message_handler, 2); | 239 module:hook("message/full", message_handler, 2); |
240 | 240 |
241 module:add_feature(xmlns_mam); | 241 module:add_feature(xmlns_mam); -- COMPAT with XEP-0313 v 0.1 |
242 | 242 |
243 module:hook("account-disco-info", function(event) | |
244 event.reply:tag("feature", {var=xmlns_mam}):up(); | |
245 end); | |
246 |