aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-02-12 12:28:45 +0000
committerMatthew Wild <mwild1@gmail.com>2010-02-12 12:28:45 +0000
commitb683aef2085269b3d0f36c69c75b34ad45220c13 (patch)
treebfb33953fa576c3ffc8dae8064c27bf4d528ddbf
parentc68c3797aa8ae689ffa946bf9a2eefcd0ee0fd40 (diff)
downloadprosody-b683aef2085269b3d0f36c69c75b34ad45220c13.tar.gz
prosody-b683aef2085269b3d0f36c69c75b34ad45220c13.zip
mod_privacy: Fix to correctly iterate over lists stored in new format
-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