aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-07-09 08:23:16 +0200
committerKim Alvefur <zash@zash.se>2014-07-09 08:23:16 +0200
commited90b8cac29a9890dc93d0f43b8cee84c960a1f1 (patch)
tree5718cffca53cf35742a703f2a1c55bfdb822e6ba /util
parent663261871fffe8f4021e86a4b43be5f4c2331795 (diff)
downloadprosody-ed90b8cac29a9890dc93d0f43b8cee84c960a1f1.tar.gz
prosody-ed90b8cac29a9890dc93d0f43b8cee84c960a1f1.zip
util.vcard: Add support for uri types in vcard4
Diffstat (limited to 'util')
-rw-r--r--util/vcard.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/vcard.lua b/util/vcard.lua
index 29a40844..152b0b2d 100644
--- a/util/vcard.lua
+++ b/util/vcard.lua
@@ -348,6 +348,8 @@ local function item_to_vcard4(item)
local prop_def = vCard4_dtd[typ];
if prop_def == "text" then
t:tag("text"):text(item[1]):up();
+ elseif prop_def == "uri" then
+ t:tag("uri"):text(item[1]):up();
elseif type(prop_def) == "table" then
if prop_def.values then
for i, v in ipairs(prop_def.values) do