mod_vcard: Remove vcard_compatibility COMPAT (moved to mod_compat_vcard in prosody-modules), and add warning for those using the option
authorMatthew Wild <mwild1@gmail.com>
Thu, 26 Jul 2012 15:16:52 +0100
changeset 5017 a6bae9d72c8f
parent 5016 56a0b13a3d42
child 5018 eb8211b65e96
mod_vcard: Remove vcard_compatibility COMPAT (moved to mod_compat_vcard in prosody-modules), and add warning for those using the option
plugins/mod_vcard.lua
--- a/plugins/mod_vcard.lua	Thu Jul 26 04:45:22 2012 +0200
+++ b/plugins/mod_vcard.lua	Thu Jul 26 15:16:52 2012 +0100
@@ -46,13 +46,8 @@
 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