Comparison

plugins/mod_vcard.lua @ 5017:a6bae9d72c8f

mod_vcard: Remove vcard_compatibility COMPAT (moved to mod_compat_vcard in prosody-modules), and add warning for those using the option
author Matthew Wild <mwild1@gmail.com>
date Thu, 26 Jul 2012 15:16:52 +0100
parent 2923:b7049746bd29
child 5500:eeea0eb2602a
comparison
equal deleted inserted replaced
5016:56a0b13a3d42 5017:a6bae9d72c8f
44 end 44 end
45 45
46 module:hook("iq/bare/vcard-temp:vCard", handle_vcard); 46 module:hook("iq/bare/vcard-temp:vCard", handle_vcard);
47 module:hook("iq/host/vcard-temp:vCard", handle_vcard); 47 module:hook("iq/host/vcard-temp:vCard", handle_vcard);
48 48
49 -- COMPAT: https://support.process-one.net/browse/EJAB-1045 49 -- COMPAT w/0.8
50 if module:get_option("vcard_compatibility") then 50 if module:get_option("vcard_compatibility") ~= nil then
51 module:hook("iq/full", function(data) 51 module:log("error", "The vcard_compatibility option has been removed, see"..
52 local stanza = data.stanza; 52 "mod_compat_vcard in prosody-modules if you still need this.");
53 local payload = stanza.tags[1];
54 if stanza.attr.type == "get" and payload.name == "vCard" and payload.attr.xmlns == "vcard-temp" then
55 return handle_vcard(data);
56 end
57 end, 1);
58 end 53 end