plugins/mod_vcard.lua
changeset 1800 cea841708dd4
parent 1523 841d61be198f
child 1956 ec04b571fa86
equal deleted inserted replaced
1798:4c8f3fa9d926 1800:cea841708dd4
    17 local jid = 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", "component"}, "vcard-temp", 
    23 		function (session, stanza)
    23 		function (session, stanza)
    24 			if stanza.tags[1].name == "vCard" then
    24 			if stanza.tags[1].name == "vCard" then
    25 				local to = stanza.attr.to;
    25 				local to = stanza.attr.to;
    26 				if stanza.attr.type == "get" then
    26 				if stanza.attr.type == "get" then
    27 					local vCard;
    27 					local vCard;