Mercurial > prosody-hg
comparison plugins/mod_vcard.lua @ 1065:3806173670f2
mod_*: Fix many unnecessary global accesses in modules (already committed to main repo)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 29 Apr 2009 02:08:12 +0100 |
| parents | 2c0b9e3c11c3 |
| children | 841d61be198f |
comparison
equal
deleted
inserted
replaced
| 1064:3e945c3938ad | 1065:3806173670f2 |
|---|---|
| 6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
| 7 -- | 7 -- |
| 8 | 8 |
| 9 | 9 |
| 10 | 10 |
| 11 require "util.datamanager" | 11 local hosts = _G.hosts; |
| 12 local datamanager = datamanager; | 12 local datamanager = require "util.datamanager" |
| 13 | 13 |
| 14 local st = require "util.stanza" | 14 local st = require "util.stanza" |
| 15 local t_concat, t_insert = table.concat, table.insert; | 15 local t_concat, t_insert = table.concat, table.insert; |
| 16 | 16 |
| 17 require "util.jid" | 17 local jid = require "util.jid" |
| 18 local jid_split = jid.split; | 18 local jid_split = jid.split; |
| 19 | 19 |
| 20 module:add_feature("vcard-temp"); | 20 module:add_feature("vcard-temp"); |
| 21 | 21 |
| 22 module:add_iq_handler({"c2s", "s2sin"}, "vcard-temp", | 22 module:add_iq_handler({"c2s", "s2sin"}, "vcard-temp", |
