diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-10-24 07:36:48 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-10-24 07:36:48 +0100 |
commit | 2d7656d5db5476fd31a41e71e46205cab1bce74f (patch) | |
tree | f2cb19832a1a1c35d4a42286138b9f80968bc3da /util/stanza.lua | |
parent | d49ea8a12e4440a0df267b575e4925231bda4803 (diff) | |
parent | 5c90ffdf7e7c7d784ed5f60eed3f8a2666c117f8 (diff) | |
download | prosody-2d7656d5db5476fd31a41e71e46205cab1bce74f.tar.gz prosody-2d7656d5db5476fd31a41e71e46205cab1bce74f.zip |
Merging more s2s
Diffstat (limited to 'util/stanza.lua')
-rw-r--r-- | util/stanza.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/util/stanza.lua b/util/stanza.lua index 6bc70ab9..95a19fbd 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -6,8 +6,14 @@ local setmetatable = setmetatable; local pairs = pairs; local ipairs = ipairs; local type = type; +local next = next; +local print = print; local unpack = unpack; local s_gsub = string.gsub; + +local debug = debug; +local log = require "util.logger".init("stanza"); + module "stanza" stanza_mt = {}; @@ -91,7 +97,6 @@ function stanza_mt.__tostring(t) if t.attr then for k, v in pairs(t.attr) do if type(k) == "string" then attr_string = attr_string .. s_format(" %s='%s'", k, tostring(v)); end end end - return s_format("<%s%s>%s</%s>", t.name, attr_string, children_text, t.name); end |