projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6752bb
)
mod_privacy: Fix to correctly iterate over lists stored in new format
author
Matthew Wild
<mwild1@gmail.com>
Fri, 12 Feb 2010 12:28:45 +0000
(12:28 +0000)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 12 Feb 2010 12:28:45 +0000
(12:28 +0000)
plugins/mod_privacy.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_privacy.lua
b/plugins/mod_privacy.lua
index 1cb931e05db9da34bbf60ecfd8db6c5d7f928a94..f445d6ed3ea61ca8311bb2d395869c20a3284cb9 100644
(file)
--- 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 i
pairs(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