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 | 1f39fe0a715664ba4ca140d8da47d06a772fa13c (patch) | |
tree | cb1660b91035150d6b43453a36eb94733e86f427 /core/hostmanager.lua | |
parent | 026a3baf9f1299aaf542961434ac314e042fbfb7 (diff) | |
download | prosody-1f39fe0a715664ba4ca140d8da47d06a772fa13c.tar.gz prosody-1f39fe0a715664ba4ca140d8da47d06a772fa13c.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.
Diffstat (limited to 'core/hostmanager.lua')
-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 |