# HG changeset patch # User Kim Alvefur # Date 1586626275 -7200 # Node ID 29575fe648600003aa999c828d1af5aee8428c1b # Parent ad86b93093a30109181430e8a5c9244884ef63da 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. diff -r ad86b93093a3 -r 29575fe64860 plugins/mod_component.lua --- a/plugins/mod_component.lua Sat Apr 11 17:59:39 2020 +0200 +++ b/plugins/mod_component.lua Sat Apr 11 19:31:15 2020 +0200 @@ -132,7 +132,7 @@ 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;