diff options
author | Paul Aurich <paul@darkrain42.org> | 2012-03-26 19:17:09 -0700 |
---|---|---|
committer | Paul Aurich <paul@darkrain42.org> | 2012-03-26 19:17:09 -0700 |
commit | dc93045ece17b36f7b9dfcd96837638913ed45f8 (patch) | |
tree | d965dff452dffad97649ac5466241cea78bb0e81 /plugins/s2s | |
parent | eb824294fe75a98771f3397c6a212d270e76550b (diff) | |
download | prosody-dc93045ece17b36f7b9dfcd96837638913ed45f8.tar.gz prosody-dc93045ece17b36f7b9dfcd96837638913ed45f8.zip |
mod_s2s: Queuing a stanza constitutes handling it.
Diffstat (limited to 'plugins/s2s')
-rw-r--r-- | plugins/s2s/mod_s2s.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/s2s/mod_s2s.lua b/plugins/s2s/mod_s2s.lua index e1102528..b0bd5b40 100644 --- a/plugins/s2s/mod_s2s.lua +++ b/plugins/s2s/mod_s2s.lua @@ -76,6 +76,7 @@ module:hook("route/remote", function (event) if host.sendq then t_insert(host.sendq, {tostring(stanza), stanza.attr.type ~= "error" and stanza.attr.type ~= "result" and st.reply(stanza)}); else host.sendq = { {tostring(stanza), stanza.attr.type ~= "error" and stanza.attr.type ~= "result" and st.reply(stanza)} }; end host.log("debug", "stanza [%s] queued ", stanza.name); + return true; elseif host.type == "local" or host.type == "component" then log("error", "Trying to send a stanza to ourselves??") log("error", "Traceback: %s", get_traceback()); |