mod_privacy: Fix to correctly iterate over lists stored in new format
authorMatthew Wild <mwild1@gmail.com>
Fri, 12 Feb 2010 12:28:45 +0000
changeset 2615 c5f7c803fe7d
parent 2614 7a589e9e2372
child 2616 58148ad08af5
mod_privacy: Fix to correctly iterate over lists stored in new format
plugins/mod_privacy.lua
--- 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