hostmanager: Don't prevent host_session.send() from routing errors or iq results...
authorMatthew Wild <mwild1@gmail.com>
Fri, 26 Sep 2014 16:10:43 +0000 (17:10 +0100)
committerMatthew Wild <mwild1@gmail.com>
Fri, 26 Sep 2014 16:10:43 +0000 (17:10 +0100)
core/hostmanager.lua

index d10ecd3002dead8c7d851c6bdd02add310b0edf4..ca532625a4275513f240d4e66a216a360824aeee 100644 (file)
@@ -56,13 +56,6 @@ end
 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