changeset 760:442f88b49d9b

mod_addressing: Replace use of core_post_stanza() with module:send()
author Kim Alvefur <zash@zash.se>
date Wed, 01 Aug 2012 02:30:30 +0200
parents 6531a029fce5
children 48f8b312a509
files mod_addressing/mod_addressing.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_addressing/mod_addressing.lua	Wed Aug 01 02:29:01 2012 +0200
+++ b/mod_addressing/mod_addressing.lua	Wed Aug 01 02:30:30 2012 +0200
@@ -33,7 +33,7 @@
 		for _, destination in ipairs(destinations) do
 			stanza.attr.to = destination;
 			module:log("debug", "posting stanza to %s", destination)
-			core_post_stanza(hosts[module.host], stanza);
+			module:send(stanza);
 		end
 		stanza.attr.to = orig_to;
 		return stanza.attr.to == module.host or nil;