Diff

core/s2smanager.lua @ 225:bbbd169b326b

Just committing this warning, because I want to know if the problem really affects us
author Matthew Wild <mwild1@gmail.com>
date Sat, 08 Nov 2008 20:39:08 +0000
parent 199:eccf66b42bd7
child 227:211c2e04c82b
line wrap: on
line diff
--- a/core/s2smanager.lua	Sat Nov 08 20:32:30 2008 +0000
+++ b/core/s2smanager.lua	Sat Nov 08 20:39:08 2008 +0000
@@ -39,6 +39,8 @@
 			else t_insert(host.sendq, data); end
 		else
 			log("debug", "going to send stanza to "..to_host.." from "..from_host);
+			-- FIXME
+			if hosts[to_host].from_host ~= from_host then log("error", "WARNING! This is a bug!!!!"); end
 			hosts[to_host].sends2s(data);
 			log("debug", "stanza sent over "..hosts[to_host].type);
 		end
@@ -213,4 +215,4 @@
 	end
 end
 
-return _M;
\ No newline at end of file
+return _M;