plugins.vcard: Convert textual vCards to XEP-54 format

Thu, 11 Oct 2012 17:00:20 +0200

author
Kim Alvefur <zash@zash.se>
date
Thu, 11 Oct 2012 17:00:20 +0200
changeset 316
03ad51d96858
parent 315
3742107e2505
child 317
38562b0b50f2

plugins.vcard: Convert textual vCards to XEP-54 format

plugins/vcard.lua file | annotate | diff | comparison | revisions
--- a/plugins/vcard.lua	Mon Sep 10 23:37:04 2012 +1000
+++ b/plugins/vcard.lua	Thu Oct 11 17:00:20 2012 +0200
@@ -23,7 +23,7 @@
 		if type(aCard) == "table" and aCard.name then
 			xCard = aCard;
 		elseif type(aCard) == "string" then
-			xCard = vcard.from_text(aCard)[1];
+			xCard = vcard.to_xep54(vcard.from_text(aCard)[1]);
 		elseif type(aCard) == "table" then
 			xCard = vcard.to_xep54(aCard);
 			error("Converting a table to vCard not implemented")

mercurial