# HG changeset patch # User Matthew Wild # Date 1661784487 -3600 # Node ID 1bc2220cd6eca7111ec8be2d7bd7ff7857e049f7 # Parent 36ba170c4fd0885ffee6e424c27b2108abde523c mod_smacks: Use new :add_error() in last remaining error result construction diff -r 36ba170c4fd0 -r 1bc2220cd6ec plugins/mod_smacks.lua --- 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