On 2015-03-21 16:19, Simon Hill wrote:
> The /email/ var is returning as empty.

Note that <EMAIL> does not contain the email address directly, but as a
child element <USERID>.  So you will need to do

email = vcard:get_child("EMAIL");
email = email and email:get_child_text("USERID");

to get the actual email address, if there is one.

--
Hope that helps,
Kim "Zash" Alvefur

-- 
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prosody-dev+unsubscr...@googlegroups.com.
To post to this group, send email to prosody-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/prosody-dev.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to