# HG changeset patch # User Kim Alvefur # Date 1453632374 -3600 # Node ID acf86edeb1ccaaa522f4c53aa5c08f3411c5a4a9 # Parent 6645838c64752fbe68ca094fcf3947482708956a mod_mam: Compensate for small change in mod_disco between 0.9 and 0.10 diff -r 6645838c6475 -r acf86edeb1cc mod_mam/mod_mam.lua --- a/mod_mam/mod_mam.lua Sat Jan 23 20:34:26 2016 +0100 +++ b/mod_mam/mod_mam.lua Sun Jan 24 11:46:14 2016 +0100 @@ -322,6 +322,6 @@ 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(); + (event.reply or event.stanza):tag("feature", {var=xmlns_mam}):up(); end);