X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=util%2Fstanza.lua;h=a0ab2a5aa0ae5d9be003fba34a2682931154ef81;hb=a0dc04ad05a5a436c967383e9ba06d5cc11e2e88;hp=5c430f1d887ce0833ebff89505145f3a30cad97a;hpb=e8923475ab276515e5d4fff920be6cb4eacdbe5a;p=prosody.git diff --git a/util/stanza.lua b/util/stanza.lua index 5c430f1d..a0ab2a5a 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -237,7 +237,7 @@ function stanza_mt.get_error(stanza) end type = error_tag.attr.type; - for child in error_tag:childtags() do + for _, child in ipairs(error_tag.tags) do if child.attr.xmlns == xmlns_stanzas then if not text and child.name == "text" then text = child:get_text();