diff options
author | Waqas Hussain <waqas20@gmail.com> | 2011-02-03 13:18:20 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2011-02-03 13:18:20 +0500 |
commit | c5be7023682d05523a4f64f0cb46cb6ed8d76896 (patch) | |
tree | 12edfbae42ba28fefdf375a637b9bdc3778ef0a7 /util | |
parent | ab6ab5ac080889ba914a711dbc07a6bbd6060108 (diff) | |
parent | bbb4eabf46f51c0835606c87fb4746b72af8ae5b (diff) | |
download | prosody-c5be7023682d05523a4f64f0cb46cb6ed8d76896.tar.gz prosody-c5be7023682d05523a4f64f0cb46cb6ed8d76896.zip |
Merge 0.8->trunk.
Diffstat (limited to 'util')
-rw-r--r-- | util/stanza.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/stanza.lua b/util/stanza.lua index 79c1a71e..7d1f5693 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -44,11 +44,13 @@ module "stanza" stanza_mt = { __type = "stanza" }; stanza_mt.__index = stanza_mt; +local stanza_mt = stanza_mt; function stanza(name, attr) local stanza = { name = name, attr = attr or {}, tags = {} }; return setmetatable(stanza, stanza_mt); end +local stanza = stanza; function stanza_mt:query(xmlns) return self:tag("query", { xmlns = xmlns }); |