X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=core%2Fhostmanager.lua;h=3d581418fd2017bb121eab1f7e063b67d1adc375;hb=c9492b4832d02487e200126d7caea403bc5e06fd;hp=046722b1a0ff3ca80c40f4a5225e06354ba6e566;hpb=77badd853a3d3c3b8c968b7d62b3bae1fa649405;p=prosody.git diff --git a/core/hostmanager.lua b/core/hostmanager.lua index 046722b1..3d581418 100644 --- a/core/hostmanager.lua +++ b/core/hostmanager.lua @@ -69,13 +69,6 @@ end prosody_events.add_handler("server-starting", load_enabled_hosts); local function host_send(stanza) - local name, stanza_type = stanza.name, stanza.attr.type; - if stanza_type == "error" or (name == "iq" and stanza_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