plugins.disco: Further fixes to storing and retrieving to/from the disco cache

Thu, 09 Sep 2010 19:27:46 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 09 Sep 2010 19:27:46 +0100
changeset 121
9b31ac5a37ea
parent 120
47449a29d8ed
child 122
e2600454fd54

plugins.disco: Further fixes to storing and retrieving to/from the disco cache

plugins/disco.lua file | annotate | diff | comparison | revisions
--- a/plugins/disco.lua	Thu Sep 09 19:25:08 2010 +0100
+++ b/plugins/disco.lua	Thu Sep 09 19:27:46 2010 +0100
@@ -236,10 +236,10 @@
 			end
 			
 			if node then
-				if not self.disco.cache.nodes[node] then
-					self.disco.cache.nodes[node] = { nodes = {} };
+				if not self.disco.cache[jid].nodes[node] then
+					self.disco.cache[jid].nodes[node] = { nodes = {} };
 				end
-				self.disco.cache.nodes[node].items = disco_items;
+				self.disco.cache[jid].nodes[node].items = disco_items;
 			else
 				self.disco.cache[jid].items = disco_items;
 			end

mercurial