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 | 3c7cbd0e2cbf471addcc332f2a8ba5cd635ae845 (patch) | |
tree | 382b04e45b42a1f0c16678523f4a17b4d3e6ea0d /util | |
parent | 8627f2e4d560a5fa4a2f9acf638f6535b9df8f26 (diff) | |
download | prosody-3c7cbd0e2cbf471addcc332f2a8ba5cd635ae845.tar.gz prosody-3c7cbd0e2cbf471addcc332f2a8ba5cd635ae845.zip |
util.error: Add special case handling of <gone> with an URI
Diffstat (limited to 'util')
-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; |