changeset 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 6645838c6475
children 256a5e3591db
files mod_mam/mod_mam.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);