mod_support_contact: Use module:send()
authorMatthew Wild <mwild1@gmail.com>
Sun, 05 Aug 2012 02:33:29 +0100
changeset 777 e5413b66aeec
parent 776 841b5eb5fe52
child 778 56dd7c6420ee
mod_support_contact: Use module:send()
mod_support_contact/mod_support_contact.lua
--- a/mod_support_contact/mod_support_contact.lua	Sun Aug 05 02:32:17 2012 +0100
+++ b/mod_support_contact/mod_support_contact.lua	Sun Aug 05 02:33:29 2012 +0100
@@ -43,6 +43,6 @@
 		rostermanager.save_roster(node, host, roster);
 		rostermanager.roster_push(node, host, jid);
 	else
-		core_post_stanza(hosts[event.host], st.presence({from=jid, to=support_contact, type="subscribe"}));
+		module:send(st.presence({from=jid, to=support_contact, type="subscribe"}));
 	end
 end);