Comparison

plugins/mod_mam/mod_mam.lua @ 7891:01d2a2af3146

mod_mam: Advertise Stanza ID support (XEP-0359) (thanks iNPUTmice)
author Kim Alvefur <zash@zash.se>
date Tue, 14 Feb 2017 18:51:41 +0100
parent 7890:9e4de27e8e08
child 7901:fc859aed9279
comparison
equal deleted inserted replaced
7890:9e4de27e8e08 7891:01d2a2af3146
364 module:hook("message/bare", message_handler, 0); 364 module:hook("message/bare", message_handler, 0);
365 module:hook("message/full", message_handler, 0); 365 module:hook("message/full", message_handler, 0);
366 366
367 module:hook("account-disco-info", function(event) 367 module:hook("account-disco-info", function(event)
368 (event.reply or event.stanza):tag("feature", {var=xmlns_mam}):up(); 368 (event.reply or event.stanza):tag("feature", {var=xmlns_mam}):up();
369 (event.reply or event.stanza):tag("feature", {var=xmlns_st_id}):up();
369 end); 370 end);
370 371