Software /
code /
prosody
Diff
util/stanza.lua @ 2:9bb397205f26
Working presence!
author | matthew |
---|---|
date | Sun, 24 Aug 2008 04:34:01 +0000 |
parent | 1:b8787e859fd2 |
child | 4:09c3845ed442 |
line wrap: on
line diff
--- a/util/stanza.lua Sun Aug 24 01:51:02 2008 +0000 +++ b/util/stanza.lua Sun Aug 24 04:34:01 2008 +0000 @@ -68,6 +68,15 @@ end, self, i; end +function stanza_mt:childtags() + local i = 0; + return function (a) + i = i + 1 + local v = self.tags[i] + if v then return v; end + end, self.tags[1], i; + +end function stanza_mt.__tostring(t) local children_text = "";