doc/example_pep.lua

changeset 246
6c60d19e2180
parent 243
20842f98f9ff
child 260
7f6df45a3d1f
--- a/doc/example_pep.lua	Sun Nov 27 23:00:15 2011 +0000
+++ b/doc/example_pep.lua	Mon Nov 28 15:00:48 2011 +0000
@@ -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