From b683aef2085269b3d0f36c69c75b34ad45220c13 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 12 Feb 2010 12:28:45 +0000 Subject: mod_privacy: Fix to correctly iterate over lists stored in new format --- plugins/mod_privacy.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_privacy.lua b/plugins/mod_privacy.lua index 1cb931e0..f445d6ed 100644 --- a/plugins/mod_privacy.lua +++ b/plugins/mod_privacy.lua @@ -272,8 +272,8 @@ function getList(privacy_lists, origin, stanza, name) 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 -- cgit v1.2.3