aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-11-15 14:07:53 -0500
committerMatthew Wild <mwild1@gmail.com>2012-11-15 14:07:53 -0500
commitb16826a916ddd7124cf4e1fc579b09f5c1a0c04f (patch)
treeb4f61532023b0ef12dadab99cc45df9e12a7502e /util
parent80711fd402439eb00afef9411334b72f6e615647 (diff)
parentcfceef5b2216cbaadec0601ded7fabcaef7377f7 (diff)
downloadprosody-b16826a916ddd7124cf4e1fc579b09f5c1a0c04f.tar.gz
prosody-b16826a916ddd7124cf4e1fc579b09f5c1a0c04f.zip
Merge 0.9->trunk
Diffstat (limited to 'util')
-rw-r--r--util/pubsub.lua1
1 files changed, 1 insertions, 0 deletions
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