equal
deleted
inserted
replaced
57 elseif tag:find"parameters/type/text#" == "work" then |
57 elseif tag:find"parameters/type/text#" == "work" then |
58 vcard_temp:tag("WORK"):up(); |
58 vcard_temp:tag("WORK"):up(); |
59 end |
59 end |
60 vcard_temp:up(); |
60 vcard_temp:up(); |
61 end |
61 end |
|
62 elseif tag.name == "tel" then |
|
63 local text = tag:get_child_text("uri"); |
|
64 if text then |
|
65 if text:sub(1, 4) == "tel:" then |
|
66 text = text:sub(5) |
|
67 end |
|
68 vcard_temp:tag("TEL"):text_tag("NUMBER", text); |
|
69 if tag:find"parameters/type/text#" == "home" then |
|
70 vcard_temp:tag("HOME"):up(); |
|
71 elseif tag:find"parameters/type/text#" == "work" then |
|
72 vcard_temp:tag("WORK"):up(); |
|
73 end |
|
74 vcard_temp:up(); |
|
75 end |
62 end |
76 end |
63 end |
77 end |
64 end |
78 end |
65 |
79 |
66 origin.send(st.reply(stanza):add_child(vcard_temp)); |
80 origin.send(st.reply(stanza):add_child(vcard_temp)); |