doc/example_pep.lua: get_child_text()

Thu, 24 Nov 2011 07:02:27 +0100

author
Kim Alvefur <zash@zash.se>
date
Thu, 24 Nov 2011 07:02:27 +0100
changeset 243
20842f98f9ff
parent 232
5b49de3aa0f3
child 244
6dbd61ecd5d0

doc/example_pep.lua: get_child_text()

doc/example_pep.lua file | annotate | diff | comparison | revisions
--- a/doc/example_pep.lua	Thu Nov 24 06:23:43 2011 +0100
+++ b/doc/example_pep.lua	Thu Nov 24 07:02:27 2011 +0100
@@ -48,7 +48,7 @@
 	end);
 	
 	c:hook_pep("http://jabber.org/protocol/tune", function (event)
-		print(event.from.." is listening to "..event.item:get_child("title"):get_text());
+		print(event.from.." is listening to "..event.item:get_child_text("title"));
 	end);
 end);
 

mercurial