From cfceef5b2216cbaadec0601ded7fabcaef7377f7 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 15 Nov 2012 13:24:44 -0500 Subject: util.pubsub: Add item-published event --- util/pubsub.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'util/pubsub.lua') diff --git a/util/pubsub.lua b/util/pubsub.lua index d8ae1f38..8ff458e7 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -244,6 +244,7 @@ function service:publish(node, actor, id, item) 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 -- cgit v1.2.3