aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-07-26 15:16:52 +0100
committerMatthew Wild <mwild1@gmail.com>2012-07-26 15:16:52 +0100
commit37dbbe422ea6e22d04819a6e3fdc55e73a16f38b (patch)
treed5edd7dcd1f4a16329e27f784b56e8964bf37308 /plugins
parent3436718fab8e0d94b5e308c8400a42bf7fdbfda2 (diff)
downloadprosody-37dbbe422ea6e22d04819a6e3fdc55e73a16f38b.tar.gz
prosody-37dbbe422ea6e22d04819a6e3fdc55e73a16f38b.zip
mod_vcard: Remove vcard_compatibility COMPAT (moved to mod_compat_vcard in prosody-modules), and add warning for those using the option
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_vcard.lua13
1 files changed, 4 insertions, 9 deletions
diff --git a/plugins/mod_vcard.lua b/plugins/mod_vcard.lua
index e2f1dfb8..d3c27cc0 100644
--- a/plugins/mod_vcard.lua
+++ b/plugins/mod_vcard.lua
@@ -46,13 +46,8 @@ end
module:hook("iq/bare/vcard-temp:vCard", handle_vcard);
module:hook("iq/host/vcard-temp:vCard", handle_vcard);
--- COMPAT: https://support.process-one.net/browse/EJAB-1045
-if module:get_option("vcard_compatibility") then
- module:hook("iq/full", function(data)
- local stanza = data.stanza;
- local payload = stanza.tags[1];
- if stanza.attr.type == "get" and payload.name == "vCard" and payload.attr.xmlns == "vcard-temp" then
- return handle_vcard(data);
- end
- end, 1);
+-- COMPAT w/0.8
+if module:get_option("vcard_compatibility") ~= nil then
+ module:log("error", "The vcard_compatibility option has been removed, see"..
+ "mod_compat_vcard in prosody-modules if you still need this.");
end