# HG changeset patch # User Kim Alvefur # Date 1601136927 -7200 # Node ID 4b4b5188492f9438ce3a280cb73045491e82efa6 # Parent 33b6fbdcec88edb3bfa4029efc2a90a1fc6f66a4 util.error: Add special case handling of with an URI diff -r 33b6fbdcec88 -r 4b4b5188492f util/error.lua --- a/util/error.lua Sat Sep 26 18:14:10 2020 +0200 +++ b/util/error.lua Sat Sep 26 18:15:27 2020 +0200 @@ -102,6 +102,9 @@ 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;