Thank you. That worked! Here's the working code: https://gist.github.com/metalaureate/071148513466e24224f2
On Sat, Mar 21, 2015 at 8:33 AM, Kim Alvefur <[email protected]> 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 > https://groups.google.com/d/topic/prosody-dev/hOD-FzM1pY0/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > 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 "prosody-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/prosody-dev. For more options, visit https://groups.google.com/d/optout.
