Comparison

plugins/mod_vcard.lua @ 1042:a3d77353c18a

mod_*: Fix a load of global accesses
author Matthew Wild <mwild1@gmail.com>
date Wed, 22 Apr 2009 21:32:23 +0100
parent 896:2c0b9e3c11c3
child 1523:841d61be198f
comparison
equal deleted inserted replaced
1041:07835534d996 1042:a3d77353c18a
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",