# HG changeset patch # User Kim Alvefur # Date 1740257287 -3600 # Node ID 53c39fdb007f6b35e0b7138d8bcf042e2a8f2cb9 # Parent 08c2b7accd944f8db8b1b80476e4bcb5283242be mod_component: Don't return error reply for errors, fixes #1897 diff -r 08c2b7accd94 -r 53c39fdb007f plugins/mod_component.lua --- a/plugins/mod_component.lua Sat Feb 22 21:45:34 2025 +0100 +++ b/plugins/mod_component.lua Sat Feb 22 21:48:07 2025 +0100 @@ -239,7 +239,9 @@ end if not stanza.attr.to then session.log("warn", "Rejecting stanza with no 'to' address"); - session.send(st.error_reply(stanza, "modify", "bad-request", "Components MUST specify a 'to' address on stanzas")); + if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then + session.send(st.error_reply(stanza, "modify", "bad-request", "Components MUST specify a 'to' address on stanzas")); + end return; end end