diff options
author | Kim Alvefur <zash@zash.se> | 2020-04-11 19:31:15 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-04-11 19:31:15 +0200 |
commit | 0d1dfac4ea5f17c3efbd338067f38c06c4c08fef (patch) | |
tree | 70f55bab55f2ec57f4040e81dd768d6bd1f5f7ac /plugins | |
parent | da9dc387a4e619d0cd9f04dda65e161683459339 (diff) | |
download | prosody-0d1dfac4ea5f17c3efbd338067f38c06c4c08fef.tar.gz prosody-0d1dfac4ea5f17c3efbd338067f38c06c4c08fef.zip |
mod_component: Specify an error source for Component unavailable errors
It is somewhat ambiguous where an error really comes from in the case of
an external component.
Setting by to the bare host at least distinguishes it from JIDs with a
node- or resourcepart.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_component.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua index afcfc68c..9ffc496e 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -132,7 +132,7 @@ function module.add_host(module) end module:log("warn", "Component not connected, bouncing error for: %s", stanza:top_tag()); if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then - event.origin.send(st.error_reply(stanza, "wait", "service-unavailable", "Component unavailable")); + event.origin.send(st.error_reply(stanza, "wait", "service-unavailable", "Component unavailable", module.host)); end end return true; |