Changeset

327:9439362caacc

Fixed s2s manager's send queue to not store recieved stanza objects (as these can chnage after the send call)
author Waqas Hussain <waqas20@gmail.com>
date Mon, 17 Nov 2008 18:53:13 +0500
parents 326:99a8317d1235
children 328:a1d25769970f
files core/s2smanager.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/s2smanager.lua	Mon Nov 17 13:51:47 2008 +0500
+++ b/core/s2smanager.lua	Mon Nov 17 18:53:13 2008 +0500
@@ -29,6 +29,7 @@
 module "s2smanager"
 
 function send_to_host(from_host, to_host, data)
+	if data.name then data = tostring(data); end
 	local host = hosts[from_host].s2sout[to_host];
 	if host then
 		-- We have a connection to this host already