# HG changeset patch # User Kim Alvefur # Date 1343781030 -7200 # Node ID 442f88b49d9bf1dc534afdafbfc043c52c65e240 # Parent 6531a029fce53d550c5162e1b68f4075263acdbd mod_addressing: Replace use of core_post_stanza() with module:send() diff -r 6531a029fce5 -r 442f88b49d9b mod_addressing/mod_addressing.lua --- 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;