core/s2smanager.lua

changeset 327
9439362caacc
parent 269
3cfac0e5e6ca
child 331
830fd67f9378
--- 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

mercurial