diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-07-22 17:04:02 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-07-22 17:04:02 +0100 |
commit | ef597cb9a9a2793fe9b071f887848ca1c4d73d4d (patch) | |
tree | 69196f6311cdeeee38e56f19eff28a11e044a390 /plugins | |
parent | 41bab931e0143e408f83e3013e661a055a0d8150 (diff) | |
download | prosody-ef597cb9a9a2793fe9b071f887848ca1c4d73d4d.tar.gz prosody-ef597cb9a9a2793fe9b071f887848ca1c4d73d4d.zip |
mod_s2s: Don't treat a stanza as delivered if session.sends2s() returns false
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index 1dbdc6ee..8b1c7dab 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -97,9 +97,10 @@ function route_to_existing_session(event) 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 |