aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_privacy.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_privacy.lua')
-rw-r--r--plugins/mod_privacy.lua4
1 files changed, 2 insertions, 2 deletions
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