Diff

plugins/mod_privacy.lua @ 2615:c5f7c803fe7d

mod_privacy: Fix to correctly iterate over lists stored in new format
author Matthew Wild <mwild1@gmail.com>
date Fri, 12 Feb 2010 12:28:45 +0000
parent 2614:7a589e9e2372
child 2616:58148ad08af5
line wrap: on
line diff
--- 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