# HG changeset patch # User Matthew Wild # Date 1342973042 -3600 # Node ID a6d3ac11a7afee60ad4efdc5393554a3f9090d57 # Parent b7bcf088e723a610361d6db2ef65ab96c047d76d mod_s2s: Don't treat a stanza as delivered if session.sends2s() returns false diff -r b7bcf088e723 -r a6d3ac11a7af plugins/mod_s2s/mod_s2s.lua --- a/plugins/mod_s2s/mod_s2s.lua Sun Jul 22 17:02:18 2012 +0100 +++ b/plugins/mod_s2s/mod_s2s.lua Sun Jul 22 17:04:02 2012 +0100 @@ -97,9 +97,10 @@ log("error", "WARNING! This might, possibly, be a bug, but it might not..."); log("error", "We are going to send from %s instead of %s", tostring(host.from_host), tostring(from_host)); end - host.sends2s(stanza); - host.log("debug", "stanza sent over "..host.type); - return true; + if host.sends2s(stanza) then + host.log("debug", "stanza sent over "..host.type); + return true; + end end end end