Thu, 24 Nov 2011 06:23:43 +0100
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)