From b7e9b10cced42ad969011b3d906b2c13bd3de20e Mon Sep 17 00:00:00 2001 From: matthew Date: Sun, 24 Aug 2008 04:34:01 +0000 Subject: Working presence! --- util/stanza.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'util') diff --git a/util/stanza.lua b/util/stanza.lua index f41ba699..b4deda39 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -67,6 +67,15 @@ function stanza_mt:children() if v then return v; end 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) -- cgit v1.2.3