diff options
author | Kim Alvefur <zash@zash.se> | 2020-09-26 18:15:27 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-09-26 18:15:27 +0200 |
commit | 049c2437d825dca3f97cc441803986e69d04aed5 (patch) | |
tree | 382b04e45b42a1f0c16678523f4a17b4d3e6ea0d | |
parent | 8f053aedc2be00ba51477dca694d0ff6eb928185 (diff) | |
download | prosody-049c2437d825dca3f97cc441803986e69d04aed5.tar.gz prosody-049c2437d825dca3f97cc441803986e69d04aed5.zip |
util.error: Add special case handling of <gone> with an URI
-rw-r--r-- | util/error.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/error.lua b/util/error.lua index 0fe6cfa2..c0b87d86 100644 --- a/util/error.lua +++ b/util/error.lua @@ -102,6 +102,9 @@ local function from_stanza(stanza, context) type = error_type or "cancel"; condition = condition or "undefined-condition"; text = text; + extra = condition == "gone" and { + uri = error_tag:get_child_text("gone", "urn:ietf:params:xml:ns:xmpp-stanzas"); + } or nil; context = context; |