aboutsummaryrefslogtreecommitdiffstats
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
commitcf3215b032b9fc21e673f1a7029b5e644e650d67 (patch)
tree1cf620cb3821edb3d5e02045a67c50ff6ae39380
parent158ea2ce458caa15881087bcab6809ef91cb54c9 (diff)
downloadprosody-cf3215b032b9fc21e673f1a7029b5e644e650d67.tar.gz
prosody-cf3215b032b9fc21e673f1a7029b5e644e650d67.zip
util.pubsub: Use local
-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);