Comparison

plugins/disco.lua @ 120:47449a29d8ed

plugins.disco: Store node of disco items
author Matthew Wild <mwild1@gmail.com>
date Thu, 09 Sep 2010 19:25:08 +0100
parent 119:989cb40f8e62
child 121:9b31ac5a37ea
comparison
equal deleted inserted replaced
119:989cb40f8e62 120:47449a29d8ed
224 for tag in result:get_child("query", xmlns_disco_items):childtags() do 224 for tag in result:get_child("query", xmlns_disco_items):childtags() do
225 if tag.name == "item" then 225 if tag.name == "item" then
226 table.insert(disco_items, { 226 table.insert(disco_items, {
227 name = tag.attr.name; 227 name = tag.attr.name;
228 jid = tag.attr.jid; 228 jid = tag.attr.jid;
229 node = tag.attr.node;
229 }); 230 });
230 end 231 end
231 end 232 end
232 233
233 if not self.disco.cache[jid] then 234 if not self.disco.cache[jid] then