# HG changeset patch # User Kim Alvefur # Date 1577955469 -3600 # Node ID a0b8ec44a36b7c3efbb36407e9a791764812ab8e # Parent 31b1797a78e1447f4a6c3fe6a3a190f5f608d651 mod_rest: Stanzas of type error don't need a reply diff -r 31b1797a78e1 -r a0b8ec44a36b mod_rest/mod_rest.lua --- a/mod_rest/mod_rest.lua Thu Jan 02 09:30:47 2020 +0100 +++ b/mod_rest/mod_rest.lua Thu Jan 02 09:57:49 2020 +0100 @@ -182,6 +182,10 @@ local reply_needed = stanza.name == "iq"; local receipt; + if stanza.attr.type == "error" then + reply_needed = false; + end + if stanza.name == "message" and stanza.attr.id and stanza:get_child("urn:xmpp:receipts", "request") then reply_needed = true; receipt = st.stanza("received", { xmlns = "urn:xmpp:receipts", id = stanza.id });