mod_s2s: Detect TLS compression
[prosody.git] / util / stanza.lua
index 5c430f1d887ce0833ebff89505145f3a30cad97a..a0ab2a5aa0ae5d9be003fba34a2682931154ef81 100644 (file)
@@ -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();