Software /
code /
verse
Changeset
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 |
parents | 231:9712693ae40a |
children | 233:b5fd3292bdbd 243:20842f98f9ff |
files | plugins/pep.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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)