mod_s2s: Queuing a stanza constitutes handling it.
authorPaul Aurich <paul@darkrain42.org>
Mon, 26 Mar 2012 19:17:09 -0700
changeset 4630 9502c0224caf
parent 4629 bdafc3e729db
child 4631 fc5d3b053454
mod_s2s: Queuing a stanza constitutes handling it.
plugins/s2s/mod_s2s.lua
--- a/plugins/s2s/mod_s2s.lua	Mon Mar 26 18:23:49 2012 +0200
+++ b/plugins/s2s/mod_s2s.lua	Mon Mar 26 19:17:09 2012 -0700
@@ -76,6 +76,7 @@
 			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());