Fri, 12 Feb 2010 12:28:45 +0000
mod_privacy: Fix to correctly iterate over lists stored in new format
plugins/mod_privacy.lua | file | annotate | diff | comparison | revisions |
--- a/plugins/mod_privacy.lua Fri Feb 12 12:07:46 2010 +0000 +++ b/plugins/mod_privacy.lua Fri Feb 12 12:28:45 2010 +0000 @@ -272,8 +272,8 @@ if privacy_lists.default then reply:tag("default", {name=privacy_lists.default}):up(); end - for _,list in ipairs(privacy_lists.lists) do - reply:tag("list", {name=list.name}):up(); + for name,list in pairs(privacy_lists.lists) do + reply:tag("list", {name=name}):up(); end end else