plugins/mod_vcard.lua

changeset 1065
3806173670f2
parent 894
2c0b9e3c11c3
child 1523
841d61be198f
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",

mercurial