Software /
code /
prosody-modules
Diff
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 |
parent | 2030:66156e4d5274 |
child | 2039:464edd03099a |
line wrap: on
line diff
--- 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);