Comparison

plugins/mod_mam/mod_mam.lua @ 7841:ca3bdb606b1f

mod_mam: Remove legacy feature advertising
author Kim Alvefur <zash@zash.se>
date Fri, 18 Nov 2016 10:44:56 +0100
parent 7840:92b6aa3ea2ce
child 7842:9332b43931f5
comparison
equal deleted inserted replaced
7840:92b6aa3ea2ce 7841:ca3bdb606b1f
323 module:hook("pre-message/full", c2s_message_handler, 0); 323 module:hook("pre-message/full", c2s_message_handler, 0);
324 -- Stanszas to local clients 324 -- Stanszas to local clients
325 module:hook("message/bare", message_handler, 0); 325 module:hook("message/bare", message_handler, 0);
326 module:hook("message/full", message_handler, 0); 326 module:hook("message/full", message_handler, 0);
327 327
328 module:add_feature(xmlns_mam); -- COMPAT with XEP-0313 v 0.1
329
330 module:hook("account-disco-info", function(event) 328 module:hook("account-disco-info", function(event)
331 (event.reply or event.stanza):tag("feature", {var=xmlns_mam}):up(); 329 (event.reply or event.stanza):tag("feature", {var=xmlns_mam}):up();
332 end); 330 end);
333 331