# HG changeset patch # User Matthew Wild # Date 1353003884 18000 # Node ID 1e9508ae44cc8de0a4594d5f313e54b72c48a89a # Parent 4ef69555a8790041c9ce3cec9cdc405af821ce4f util.pubsub: Add item-published event diff -r 4ef69555a879 -r 1e9508ae44cc util/pubsub.lua --- 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