mod_mam: Compensate for small change in mod_disco between 0.9 and 0.10
authorKim Alvefur <zash@zash.se>
Sun, 24 Jan 2016 11:46:14 +0100
changeset 2037 acf86edeb1cc
parent 2036 6645838c6475
child 2038 256a5e3591db
mod_mam: Compensate for small change in mod_disco between 0.9 and 0.10
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);