Diff

core/hostmanager.lua @ 6609:d2faaaca695d

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Fri, 27 Mar 2015 22:24:57 +0000
parent 6557:8aa967c81cbc
child 6621:352fa2cae1c9
line wrap: on
line diff
--- a/core/hostmanager.lua	Fri Mar 27 22:19:44 2015 +0000
+++ b/core/hostmanager.lua	Fri Mar 27 22:24:57 2015 +0000
@@ -55,13 +55,6 @@
 prosody_events.add_handler("server-starting", load_enabled_hosts);
 
 local function host_send(stanza)
-	local name, type = stanza.name, stanza.attr.type;
-	if type == "error" or (name == "iq" and type == "result") then
-		local dest_host_name = select(2, jid_split(stanza.attr.to));
-		local dest_host = hosts[dest_host_name] or { type = "unknown" };
-		log("warn", "Unhandled response sent to %s host %s: %s", dest_host.type, dest_host_name, tostring(stanza));
-		return;
-	end
 	core_route_stanza(nil, stanza);
 end