aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/s2s
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
commit7f2d31106e94a0e680586ce2ae39b397304256a3 (patch)
treed965dff452dffad97649ac5466241cea78bb0e81 /plugins/s2s
parent3028a7d45da8d282f77f0395e026f9b77f006f9b (diff)
downloadprosody-7f2d31106e94a0e680586ce2ae39b397304256a3.tar.gz
prosody-7f2d31106e94a0e680586ce2ae39b397304256a3.zip
mod_s2s: Queuing a stanza constitutes handling it.
Diffstat (limited to 'plugins/s2s')
-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());