# HG changeset patch
# User Marco Cirillo <maranda@lightwitch.org>
# Date 1346021650 0
# Node ID 50688a2856f7922664b6ec2ad64ac91aebd78e3f
# Parent  5a1488369c3563f793d1dc98954ed09d113ad634
s2smanager: missing return on session.send function.

diff -r 5a1488369c35 -r 50688a2856f7 core/s2smanager.lua
--- a/core/s2smanager.lua	Sun Aug 26 20:53:40 2012 +0200
+++ b/core/s2smanager.lua	Sun Aug 26 22:54:10 2012 +0000
@@ -96,7 +96,7 @@
 	else
 		local host_session = hosts[to];
 		session.send = function(stanza)
-			host_session.events.fire_event("route/remote", { from_host = to, to_host = from, stanza = stanza });
+			return host_session.events.fire_event("route/remote", { from_host = to, to_host = from, stanza = stanza });
 		end;
 
 		prosody.events.fire_event("s2sin-established", event_data);