Changeset

9813:071aaaa5cb34 0.11

mod_vcard_legacy: Allow disabling vcard conversion Once everyone has been migrated it might be nice to skip these checks
author Kim Alvefur <zash@zash.se>
date Fri, 25 Jan 2019 23:31:02 +0100
parents 9812:330a937e085e
children 9814:5eb4ef537e98
files plugins/mod_vcard_legacy.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_vcard_legacy.lua	Fri Jan 25 23:27:23 2019 +0100
+++ b/plugins/mod_vcard_legacy.lua	Fri Jan 25 23:31:02 2019 +0100
@@ -307,6 +307,7 @@
 module:hook("pre-presence/bare", inject_xep153, 1);
 module:hook("pre-presence/host", inject_xep153, 1);
 
+if module:get_option_boolean("upgrade_legacy_vcards", true) then
 module:hook("resource-bind", function (event)
 	local session = event.session;
 	local username = session.username;
@@ -331,3 +332,4 @@
 		session.log("info", "Failed to migrate vCard-temp to PEP: %s", err or "problem emptying 'vcard' store");
 	end
 end);
+end