# HG changeset patch
# User Paul Aurich <paul@darkrain42.org>
# Date 1332814629 25200
# Node ID 9502c0224caf5ae57000df0f12b134f076c32e01
# Parent  bdafc3e729db61cf466da8cebb74ba3562b556d0
mod_s2s: Queuing a stanza constitutes handling it.

diff -r bdafc3e729db -r 9502c0224caf 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());