Software /
code /
prosody-modules
Changeset
788:aeb0999f12fa
mod_vjud/vcard.lib: Iterate on tags instead of items (thanks mva)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 09 Aug 2012 20:16:09 +0200 |
parents | 787:cec49ee88c23 |
children | 789:7e40d6680093 |
files | mod_vjud/vcard.lib.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_vjud/vcard.lib.lua Thu Aug 09 19:49:50 2012 +0200 +++ b/mod_vjud/vcard.lib.lua Thu Aug 09 20:16:09 2012 +0200 @@ -238,8 +238,8 @@ elseif prop_def.values then --array local value_names = prop_def.values; if value_names.behaviour == "repeat-last" then - for i=1,#item do - t_insert(prop, item[i]:get_text() or ""); + for i=1,#item.tags do + t_insert(prop, item.tags[i]:get_text() or ""); end else for i=1,#value_names do