# HG changeset patch # User Kim Alvefur # Date 1653656935 -7200 # Node ID 923d6fe5ee4191b39db2e00a20901bd665b29473 # Parent dd5ab9a6b5996ea5f8673ae8211412f5165eb522# Parent 252ed01896dd815700593b86834c776d0fef828d Merge 0.12->trunk diff -r dd5ab9a6b599 -r 923d6fe5ee41 plugins/mod_smacks.lua --- a/plugins/mod_smacks.lua Thu May 26 19:24:01 2022 +0200 +++ b/plugins/mod_smacks.lua Fri May 27 15:08:55 2022 +0200 @@ -56,7 +56,6 @@ local it = require"util.iterators"; local sessionmanager = require "core.sessionmanager"; -local core_process_stanza = prosody.core_process_stanza; local xmlns_errors = "urn:ietf:params:xml:ns:xmpp-stanzas"; local xmlns_delay = "urn:xmpp:delay"; @@ -426,9 +425,9 @@ session.outgoing_stanza_queue = nil; for stanza in queue._queue:consume() do if not module:fire_event("delivery/failure", { session = session, stanza = stanza }) then - if stanza.attr.type ~= "error" and stanza.attr.to ~= session.full_jid then + if stanza.attr.type ~= "error" and stanza.attr.from ~= session.full_jid then local reply = st.error_reply(stanza, "cancel", "recipient-unavailable"); - core_process_stanza(session, reply); + module:send(reply); end end end