projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70281db
)
util.stanza: Iterate on childtags instead of all childs.
author
Kim Alvefur
<zash@zash.se>
Fri, 17 Dec 2010 16:28:05 +0000
(17:28 +0100)
committer
Kim Alvefur
<zash@zash.se>
Fri, 17 Dec 2010 16:28:05 +0000
(17:28 +0100)
util/stanza.lua
patch
|
blob
|
history
diff --git
a/util/stanza.lua
b/util/stanza.lua
index 16d558af04851a8c1a16a826d7a0f43c206a64f2..afaf9ce90b47e395d442c30b47a3bf2a95171bbe 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
ren
() do
+ for child in error_tag:child
tags
() do
if child.attr.xmlns == xmlns_stanzas then
if not text and child.name == "text" then
text = child:get_text();