aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-05-27 15:08:55 +0200
committerKim Alvefur <zash@zash.se>2022-05-27 15:08:55 +0200
commitefb3513dba135107bc32859c9b073f155d56e6a0 (patch)
tree6b94ee5a880abcc52edd185883ed4fa2c0100376
parentce636e5b331afa27f69b32ba040dc6a51e23893e (diff)
parentd7e7558bae40e9b28aeba55493439b51ddf506ec (diff)
downloadprosody-efb3513dba135107bc32859c9b073f155d56e6a0.tar.gz
prosody-efb3513dba135107bc32859c9b073f155d56e6a0.zip
Merge 0.12->trunk
-rw-r--r--plugins/mod_smacks.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua
index 2172cd5c..79f824f6 100644
--- a/plugins/mod_smacks.lua
+++ b/plugins/mod_smacks.lua
@@ -56,7 +56,6 @@ local watchdog = require "util.watchdog";
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 @@ local function handle_unacked_stanzas(session)
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