Diff

mod_auto_accept_subscriptions/mod_auto_accept_subscriptions.lua @ 1949:6d2ec330fbcf

mod_auto_accept_subscriptions: Fix typo in variable name, which would prevent subscription request being sent to contact (thanks Andrey)
author Matthew Wild <mwild1@gmail.com>
date Fri, 13 Nov 2015 12:26:12 +0000
parent 1694:25412e94fb3e
line wrap: on
line diff
--- a/mod_auto_accept_subscriptions/mod_auto_accept_subscriptions.lua	Tue Nov 10 19:19:15 2015 +0100
+++ b/mod_auto_accept_subscriptions/mod_auto_accept_subscriptions.lua	Fri Nov 13 12:26:12 2015 +0000
@@ -26,7 +26,7 @@
 				module:log("debug", "sent available presence of all resources");
 				-- Add return subscription from user to contact
 				local subscribe_stanza = st.reply(stanza);
-				subscribed_stanza.attr.type = "subscribe";
+				subscribe_stanza.attr.type = "subscribe";
 				if rostermanager.set_contact_pending_out(node, host, from_bare) then
 					rostermanager.roster_push(node, host, from_bare);
 				end