Software /
code /
prosody
Diff
util/pubsub.lua @ 6435:689cb04ff9fd
util.pubsub: Use local
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 27 Sep 2014 19:57:33 +0200 |
parent | 5972:f365d3c8fd2c |
child | 6436:31ca87ea8d46 |
line wrap: on
line diff
--- a/util/pubsub.lua Sat Sep 27 19:53:39 2014 +0200 +++ b/util/pubsub.lua Sat Sep 27 19:57:33 2014 +0200 @@ -278,7 +278,7 @@ end local node_data = self.data[node]; remove_item_by_id(node_data, id); - node_data[#self.data[node] + 1] = id; + node_data[#node_data + 1] = id; node_data[id] = item; self.events.fire_event("item-published", { node = node, actor = actor, id = id, item = item }); self.config.broadcaster("items", node, node_obj.subscribers, item);