comparison 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
parents 25412e94fb3e
children
comparison
equal deleted inserted replaced
1948:2748aa8f36e0 1949:6d2ec330fbcf
24 module:log("debug", "sent subscribed"); 24 module:log("debug", "sent subscribed");
25 hosts[host].modules.presence.send_presence_of_available_resources(node, host, to_bare, origin); 25 hosts[host].modules.presence.send_presence_of_available_resources(node, host, to_bare, origin);
26 module:log("debug", "sent available presence of all resources"); 26 module:log("debug", "sent available presence of all resources");
27 -- Add return subscription from user to contact 27 -- Add return subscription from user to contact
28 local subscribe_stanza = st.reply(stanza); 28 local subscribe_stanza = st.reply(stanza);
29 subscribed_stanza.attr.type = "subscribe"; 29 subscribe_stanza.attr.type = "subscribe";
30 if rostermanager.set_contact_pending_out(node, host, from_bare) then 30 if rostermanager.set_contact_pending_out(node, host, from_bare) then
31 rostermanager.roster_push(node, host, from_bare); 31 rostermanager.roster_push(node, host, from_bare);
32 end 32 end
33 core_post_stanza(hosts[host], subscribe_stanza); 33 core_post_stanza(hosts[host], subscribe_stanza);
34 return true; 34 return true;