Software /
code /
prosody
Diff
util/pubsub.lua @ 5181:1e9508ae44cc
util.pubsub: Add item-published event
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 15 Nov 2012 13:24:44 -0500 |
parent | 4367:98b258b7d5dc |
child | 5305:391b72fede9f |
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