Software /
code /
verse
Comparison
plugins/vcard_update.lua @ 244:6dbd61ecd5d0
plugins.vcard_update: get_child_text()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 24 Nov 2011 07:10:26 +0100 |
parent | 229:279c0e89c3b3 |
child | 250:a5ac643a7fd6 |
comparison
equal
deleted
inserted
replaced
243:20842f98f9ff | 244:6dbd61ecd5d0 |
---|---|
90 | 90 |
91 --[[ | 91 --[[ |
92 stream:hook("presence", function(presence) | 92 stream:hook("presence", function(presence) |
93 local x_vcard_update = presence:get_child("x", xmlns_vcard_update); | 93 local x_vcard_update = presence:get_child("x", xmlns_vcard_update); |
94 local photo_hash = x_vcard_update and x_vcard_update:get_child("photo"); | 94 local photo_hash = x_vcard_update and x_vcard_update:get_child("photo"); |
95 :get_child("photo"):get_text(hash); | 95 :get_child_text("photo"); |
96 if x_vcard_update then | 96 if x_vcard_update then |
97 -- TODO Cache peoples avatars here | 97 -- TODO Cache peoples avatars here |
98 end | 98 end |
99 end); | 99 end); |
100 --]] | 100 --]] |