aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-09-27 19:57:33 +0200
committerKim Alvefur <zash@zash.se>2014-09-27 19:57:33 +0200
commitd76cfb4b2de54dedf5c8dffa301b6baa4d54f327 (patch)
tree1cf620cb3821edb3d5e02045a67c50ff6ae39380 /util
parent07abf96a6a3b5be33d9c95f8cffdce5ffb4fe362 (diff)
downloadprosody-d76cfb4b2de54dedf5c8dffa301b6baa4d54f327.tar.gz
prosody-d76cfb4b2de54dedf5c8dffa301b6baa4d54f327.zip
util.pubsub: Use local
Diffstat (limited to 'util')
-rw-r--r--util/pubsub.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index fc67cb1f..afab634a 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -278,7 +278,7 @@ function service:publish(node, actor, id, item)
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);