comparison mod_mam/mod_mam.lua @ 2033:acf86edeb1cc

mod_mam: Compensate for small change in mod_disco between 0.9 and 0.10
author Kim Alvefur <zash@zash.se>
date Sun, 24 Jan 2016 11:46:14 +0100
parents 66156e4d5274
children 464edd03099a
comparison
equal deleted inserted replaced
2032:6645838c6475 2033:acf86edeb1cc
320 module:hook("message/full", message_handler, 2); 320 module:hook("message/full", message_handler, 2);
321 321
322 module:add_feature(xmlns_mam); -- COMPAT with XEP-0313 v 0.1 322 module:add_feature(xmlns_mam); -- COMPAT with XEP-0313 v 0.1
323 323
324 module:hook("account-disco-info", function(event) 324 module:hook("account-disco-info", function(event)
325 event.reply:tag("feature", {var=xmlns_mam}):up(); 325 (event.reply or event.stanza):tag("feature", {var=xmlns_mam}):up();
326 end); 326 end);
327 327