Comparison

plugins/mod_privacy.lua @ 2615:c5f7c803fe7d

mod_privacy: Fix to correctly iterate over lists stored in new format
author Matthew Wild <mwild1@gmail.com>
date Fri, 12 Feb 2010 12:28:45 +0000
parent 2614:7a589e9e2372
child 2616:58148ad08af5
comparison
equal deleted inserted replaced
2614:7a589e9e2372 2615:c5f7c803fe7d
270 reply:tag("active", {name=origin.activePrivacyList}):up(); 270 reply:tag("active", {name=origin.activePrivacyList}):up();
271 end 271 end
272 if privacy_lists.default then 272 if privacy_lists.default then
273 reply:tag("default", {name=privacy_lists.default}):up(); 273 reply:tag("default", {name=privacy_lists.default}):up();
274 end 274 end
275 for _,list in ipairs(privacy_lists.lists) do 275 for name,list in pairs(privacy_lists.lists) do
276 reply:tag("list", {name=list.name}):up(); 276 reply:tag("list", {name=name}):up();
277 end 277 end
278 end 278 end
279 else 279 else
280 local list = privacy_lists.lists[name]; 280 local list = privacy_lists.lists[name];
281 if list then 281 if list then