Software /
code /
verse
Diff
plugins/pep.lua @ 232:5b49de3aa0f3
plugins.pep: Set item to the first tag instead of first child.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 24 Nov 2011 06:23:43 +0100 |
parent | 216:3aac084855e6 |
child | 249:00891a675634 |
line wrap: on
line diff
--- 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)