# HG changeset patch # User Kim Alvefur # Date 1411840653 -7200 # Node ID 689cb04ff9fdff8849c4364419c7e5da6c58fdbe # Parent 382e03a40dd2a6c4a054100a7b225bd677377ae0 util.pubsub: Use local diff -r 382e03a40dd2 -r 689cb04ff9fd util/pubsub.lua --- 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);