Software /
code /
prosody
Diff
util/stanza.lua @ 145:fbb3a4ff9cf1 s2s
dialback keys now verified
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 24 Oct 2008 03:06:55 +0100 |
parent | 91:6d66eb6b24cb |
child | 180:d8b9a19d70eb |
line wrap: on
line diff
--- a/util/stanza.lua Thu Oct 23 19:10:16 2008 +0100 +++ b/util/stanza.lua Fri Oct 24 03:06:55 2008 +0100 @@ -6,8 +6,14 @@ 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 @@ 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