Just committing this warning, because I want to know if the problem really affects us
authorMatthew Wild <mwild1@gmail.com>
Sat, 8 Nov 2008 20:39:08 +0000 (20:39 +0000)
committerMatthew Wild <mwild1@gmail.com>
Sat, 8 Nov 2008 20:39:08 +0000 (20:39 +0000)
core/s2smanager.lua

index 7855181e7abfd6652d70ec41d2e60bf53d6b1203..7b4f6d0a0fed1860aeec55db6bfebc44a58e7d9f 100644 (file)
@@ -39,6 +39,8 @@ function send_to_host(from_host, to_host, data)
                        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 @@ function destroy_session(session)
        end
 end
 
-return _M;
\ No newline at end of file
+return _M;