diff options
author | Waqas Hussain <waqas20@gmail.com> | 2011-02-03 13:13:49 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2011-02-03 13:13:49 +0500 |
commit | bbb4eabf46f51c0835606c87fb4746b72af8ae5b (patch) | |
tree | 4f7142f7af40be93565e0d240445898f602061cc /util | |
parent | 78a80f36b577ec6adcbcca3e194cac2e423fc1ff (diff) | |
download | prosody-bbb4eabf46f51c0835606c87fb4746b72af8ae5b.tar.gz prosody-bbb4eabf46f51c0835606c87fb4746b72af8ae5b.zip |
util.stanza: Make some globals local, so they don't clutter the global checking script's output. It's also a minor optimization ;)
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 }); |