changeset 777:e5413b66aeec

mod_support_contact: Use module:send()
author Matthew Wild <mwild1@gmail.com>
date Sun, 05 Aug 2012 02:33:29 +0100
parents 841b5eb5fe52
children 56dd7c6420ee
files mod_support_contact/mod_support_contact.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);