diff options
author | Matthew Wild <mwild1@gmail.com> | 2014-09-26 17:10:43 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2014-09-26 17:10:43 +0100 |
commit | ff0c8c3e62fe427352089108e867cc70538739d9 (patch) | |
tree | cb1660b91035150d6b43453a36eb94733e86f427 | |
parent | a1942ca7a9748be1def0bf47ee11ad32dc998c8e (diff) | |
download | prosody-ff0c8c3e62fe427352089108e867cc70538739d9.tar.gz prosody-ff0c8c3e62fe427352089108e867cc70538739d9.zip |
hostmanager: Don't prevent host_session.send() from routing errors or iq results, so modules can handle them. This code was originally added for a reason, but I can't remember what it was.
-rw-r--r-- | core/hostmanager.lua | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/core/hostmanager.lua b/core/hostmanager.lua index d10ecd30..ca532625 100644 --- a/core/hostmanager.lua +++ b/core/hostmanager.lua @@ -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 |