projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util.stanza: Change get_error() to return nil rather than '' for no text
[prosody.git]
/
util
/
stanza.lua
diff --git
a/util/stanza.lua
b/util/stanza.lua
index afaf9ce90b47e395d442c30b47a3bf2a95171bbe..16d558af04851a8c1a16a826d7a0f43c206a64f2 100644
(file)
--- 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:child
tags
() do
+ for child in error_tag:child
ren
() do
if child.attr.xmlns == xmlns_stanzas then
if not text and child.name == "text" then
text = child:get_text();