From bbb4eabf46f51c0835606c87fb4746b72af8ae5b Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 3 Feb 2011 13:13:49 +0500 Subject: util.stanza: Make some globals local, so they don't clutter the global checking script's output. It's also a minor optimization ;) --- util/stanza.lua | 2 ++ 1 file changed, 2 insertions(+) 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 }); -- cgit v1.2.3