Comparison

mod_addressing/mod_addressing.lua @ 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
parent 415:3ba1a5b9d657
child 935:f66a08f208ad
comparison
equal deleted inserted replaced
759:6531a029fce5 760:442f88b49d9b
31 return address; -- unsupported stuff goes right back 31 return address; -- unsupported stuff goes right back
32 end); 32 end);
33 for _, destination in ipairs(destinations) do 33 for _, destination in ipairs(destinations) do
34 stanza.attr.to = destination; 34 stanza.attr.to = destination;
35 module:log("debug", "posting stanza to %s", destination) 35 module:log("debug", "posting stanza to %s", destination)
36 core_post_stanza(hosts[module.host], stanza); 36 module:send(stanza);
37 end 37 end
38 stanza.attr.to = orig_to; 38 stanza.attr.to = orig_to;
39 return stanza.attr.to == module.host or nil; 39 return stanza.attr.to == module.host or nil;
40 end 40 end
41 end 41 end