diff options
author | matthew <devnull@localhost> | 2008-08-24 04:34:01 +0000 |
---|---|---|
committer | matthew <devnull@localhost> | 2008-08-24 04:34:01 +0000 |
commit | b7e9b10cced42ad969011b3d906b2c13bd3de20e (patch) | |
tree | f2f8fa58f681e26d47cbeb9361257c68271c7ac2 /util/stanza.lua | |
parent | 78739d9638b857bf5c8ce249036818a92eceae46 (diff) | |
download | prosody-b7e9b10cced42ad969011b3d906b2c13bd3de20e.tar.gz prosody-b7e9b10cced42ad969011b3d906b2c13bd3de20e.zip |
Working presence!
Diffstat (limited to 'util/stanza.lua')
-rw-r--r-- | util/stanza.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/util/stanza.lua b/util/stanza.lua index f41ba699..b4deda39 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -68,6 +68,15 @@ function stanza_mt:children() 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 = ""; |