Diff

core/s2smanager.lua @ 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
parent 269:3cfac0e5e6ca
child 331:830fd67f9378
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