plugins.vcard_update: get_child_text()

Thu, 24 Nov 2011 07:10:26 +0100

author
Kim Alvefur <zash@zash.se>
date
Thu, 24 Nov 2011 07:10:26 +0100
changeset 244
6dbd61ecd5d0
parent 243
20842f98f9ff
child 245
19356e2150f3

plugins.vcard_update: get_child_text()

plugins/vcard_update.lua file | annotate | diff | comparison | revisions
--- a/plugins/vcard_update.lua	Thu Nov 24 07:02:27 2011 +0100
+++ b/plugins/vcard_update.lua	Thu Nov 24 07:10:26 2011 +0100
@@ -92,7 +92,7 @@
 	stream:hook("presence", function(presence)
 			local x_vcard_update = presence:get_child("x", xmlns_vcard_update);
 			local photo_hash = x_vcard_update and x_vcard_update:get_child("photo");
-				:get_child("photo"):get_text(hash);
+				:get_child_text("photo");
 			if x_vcard_update then
 				-- TODO Cache peoples avatars here
 			end

mercurial