Software /
code /
prosody
Changeset
5181:1e9508ae44cc
util.pubsub: Add item-published event
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 15 Nov 2012 13:24:44 -0500 |
parents | 5180:4ef69555a879 |
children | 5182:9b93b0698d7e 5183:8461e8ed7c09 |
files | util/pubsub.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/util/pubsub.lua Thu Nov 15 13:24:10 2012 -0500 +++ b/util/pubsub.lua Thu Nov 15 13:24:44 2012 -0500 @@ -244,6 +244,7 @@ node_obj = self.nodes[node]; end node_obj.data[id] = item; + self.events.fire_event("item-published", { node = node, actor = actor, id = id, item = item }); self.config.broadcaster(node, node_obj.subscribers, item); return true; end