5 local st = require "util.stanza" |
5 local st = require "util.stanza" |
6 local t_concat, t_insert = table.concat, table.insert; |
6 local t_concat, t_insert = table.concat, table.insert; |
7 |
7 |
8 require "util.jid" |
8 require "util.jid" |
9 local jid_split = jid.split; |
9 local jid_split = jid.split; |
|
10 |
|
11 require "core.discomanager".set("vcard", "vcard-temp"); |
10 |
12 |
11 add_iq_handler({"c2s", "s2sin"}, "vcard-temp", |
13 add_iq_handler({"c2s", "s2sin"}, "vcard-temp", |
12 function (session, stanza) |
14 function (session, stanza) |
13 if stanza.tags[1].name == "vCard" then |
15 if stanza.tags[1].name == "vCard" then |
14 local to = stanza.attr.to; |
16 local to = stanza.attr.to; |