Comparison

plugins/mod_vcard.lua @ 421:63be85693710

Modules now sending disco replies
author Waqas Hussain <waqas20@gmail.com>
date Wed, 26 Nov 2008 08:27:09 +0500
parent 357:17bcecb06420
child 438:193f9dd64f17
comparison
equal deleted inserted replaced
420:aa1db0a80089 421:63be85693710
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;