diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-08-29 15:48:07 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2022-08-29 15:48:07 +0100 |
commit | 1254a0de555478847dcea21c3d3b519624a9e5a6 (patch) | |
tree | 7f6de758451cb693810fa3b86bdd12d3e87fcd02 | |
parent | 79ac7f6b74e25eb62f4590cb76f424507954085c (diff) | |
download | prosody-1254a0de555478847dcea21c3d3b519624a9e5a6.tar.gz prosody-1254a0de555478847dcea21c3d3b519624a9e5a6.zip |
mod_smacks: Use new :add_error() in last remaining error result construction
-rw-r--r-- | plugins/mod_smacks.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index 2ffbc45a..b3f6d189 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -57,7 +57,6 @@ local it = require"util.iterators"; local sessionmanager = require "core.sessionmanager"; -local xmlns_errors = "urn:ietf:params:xml:ns:xmpp-stanzas"; local xmlns_delay = "urn:xmpp:delay"; local xmlns_mam2 = "urn:xmpp:mam:2"; local xmlns_sm2 = "urn:xmpp:sm:2"; @@ -647,7 +646,7 @@ function handle_resume(session, stanza, xmlns_sm) local resumed, err = do_resume(session, stanza); if not resumed then session.send(st.stanza("failed", { xmlns = xmlns_sm, h = format_h(err.context.h) }) - :tag(err.condition, { xmlns = xmlns_errors })); + :add_error(err)); return true; end |