Thank you. That worked! Here's the working code:
On Sat, Mar 21, 2015 at 8:33 AM, Kim Alvefur <z...@zash.se> wrote:
> 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 a topic in the
> Google Groups "prosody-dev" group.
> To unsubscribe from this topic, visit
> To unsubscribe from this group and all its topics, send an email to
> To post to this group, send email to email@example.com.
> Visit this group at http://groups.google.com/group/prosody-dev.
> For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at http://groups.google.com/group/prosody-dev.
For more options, visit https://groups.google.com/d/optout.