plugins.pep: Set item to the first tag instead of first child.

Thu, 24 Nov 2011 06:23:43 +0100

author
Kim Alvefur <zash@zash.se>
date
Thu, 24 Nov 2011 06:23:43 +0100
changeset 232
5b49de3aa0f3
parent 231
9712693ae40a
child 233
b5fd3292bdbd
child 243
20842f98f9ff

plugins.pep: Set item to the first tag instead of first child.

plugins/pep.lua file | annotate | diff | comparison | revisions
--- a/plugins/pep.lua	Tue Nov 08 10:10:50 2011 +0100
+++ b/plugins/pep.lua	Thu Nov 24 06:23:43 2011 +0100
@@ -7,7 +7,7 @@
 	stream.pep = {};
 	
 	stream:hook("pubsub/event", function(event)
-		return stream:event("pep/"..event.node, { from = event.from, item = event.item[1] } );
+		return stream:event("pep/"..event.node, { from = event.from, item = event.item.tags[1] } );
 	end);
 	
 	function stream:hook_pep(node, callback, priority)

mercurial