Comparison

plugins/mod_s2s/mod_s2s.lua @ 4968:a6d3ac11a7af

mod_s2s: Don't treat a stanza as delivered if session.sends2s() returns false
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Jul 2012 17:04:02 +0100
parent 4960:8950510ddb2e
child 4969:15183193c6a6
comparison
equal deleted inserted replaced
4967:b7bcf088e723 4968:a6d3ac11a7af
95 -- FIXME 95 -- FIXME
96 if host.from_host ~= from_host then 96 if host.from_host ~= from_host then
97 log("error", "WARNING! This might, possibly, be a bug, but it might not..."); 97 log("error", "WARNING! This might, possibly, be a bug, but it might not...");
98 log("error", "We are going to send from %s instead of %s", tostring(host.from_host), tostring(from_host)); 98 log("error", "We are going to send from %s instead of %s", tostring(host.from_host), tostring(from_host));
99 end 99 end
100 host.sends2s(stanza); 100 if host.sends2s(stanza) then
101 host.log("debug", "stanza sent over "..host.type); 101 host.log("debug", "stanza sent over "..host.type);
102 return true; 102 return true;
103 end
103 end 104 end
104 end 105 end
105 end 106 end
106 107
107 -- Create a new outgoing session for a stanza 108 -- Create a new outgoing session for a stanza