From: Matthew Wild Date: Sat, 11 Dec 2010 22:34:29 +0000 (+0000) Subject: util.stanza: Change get_error() to return nil rather than '' for no text X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=3eebaaf29cbff1683db88323b0dc7b24b51588c6;p=prosody.git util.stanza: Change get_error() to return nil rather than '' for no text --- diff --git a/util/stanza.lua b/util/stanza.lua index afaf9ce9..16d558af 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -242,7 +242,7 @@ function stanza_mt.get_error(stanza) end type = error_tag.attr.type; - for child in error_tag:childtags() do + for child in error_tag:children() do if child.attr.xmlns == xmlns_stanzas then if not text and child.name == "text" then text = child:get_text();