Software /
code /
prosody
Changeset
12689:1bc2220cd6ec
mod_smacks: Use new :add_error() in last remaining error result construction
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 29 Aug 2022 15:48:07 +0100 |
parents | 12688:36ba170c4fd0 |
children | 12690:546c7e0f3f31 |
files | plugins/mod_smacks.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_smacks.lua Mon Aug 29 15:45:52 2022 +0100 +++ b/plugins/mod_smacks.lua Mon Aug 29 15:48:07 2022 +0100 @@ -57,7 +57,6 @@ 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 @@ 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