aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Aurich <paul@darkrain42.org>2012-03-26 19:17:09 -0700
committerPaul Aurich <paul@darkrain42.org>2012-03-26 19:17:09 -0700
commitdc93045ece17b36f7b9dfcd96837638913ed45f8 (patch)
treed965dff452dffad97649ac5466241cea78bb0e81
parenteb824294fe75a98771f3397c6a212d270e76550b (diff)
downloadprosody-dc93045ece17b36f7b9dfcd96837638913ed45f8.tar.gz
prosody-dc93045ece17b36f7b9dfcd96837638913ed45f8.zip
mod_s2s: Queuing a stanza constitutes handling it.
-rw-r--r--plugins/s2s/mod_s2s.lua1
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());