Software /
code /
clix
Changeset
98:5ad042476235
clix.vcard: Use util.vcard to stringify
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 27 Aug 2012 00:13:02 +0200 |
parents | 97:83cd777fb294 |
children | 99:c51402a40e41 102:16cdeb9cd879 |
files | clix/vcard.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/clix/vcard.lua Fri Aug 17 18:15:20 2012 +0200 +++ b/clix/vcard.lua Mon Aug 27 00:13:02 2012 +0200 @@ -1,4 +1,5 @@ local t_insert, t_concat = table.insert, table.concat; +local vcard_to_text = require"util.vcard".to_text; return function (opts, arg) if opts.short_help then @@ -12,7 +13,7 @@ conn:add_plugin("vcard"); if not opts.set then -- get conn:get_vcard(arg[1], function(vCard) - print(vCard and vCard._text or "No vCard returned") + print(vCard and vcard_to_text(vCard) or "No vCard returned") conn:close(); end); else