mod_privacy: removed trunk dependency; make it work when no lists already are exiting
authorThilo Cestonaro <thilo@cestona.ro>
Tue, 29 Sep 2009 12:59:42 +0200
changeset 19 e400ee8471b0
parent 18 2df11ec081fe
child 20 2675dc25445b
mod_privacy: removed trunk dependency; make it work when no lists already are exiting
mod_privacy/mod_privacy.lua
--- a/mod_privacy/mod_privacy.lua	Mon Sep 28 22:36:01 2009 +0200
+++ b/mod_privacy/mod_privacy.lua	Tue Sep 29 12:59:42 2009 +0200
@@ -8,7 +8,6 @@
 --
 
 local prosody = prosody;
-local helpers = require "util/helpers";
 local st = require "util.stanza";
 local datamanager = require "util.datamanager";
 local bare_sessions = bare_sessions;
@@ -190,8 +189,8 @@
 			for _,list in ipairs(privacy_lists.lists) do
 				reply:tag("list", {name=list.name}):up();
 			end
-			ret = true;	
 		end
+		ret = true;	
 	else
 		local idx = findNamedList(privacy_lists, name);
 		module:log("debug", "list idx: %d", idx or -1);
@@ -460,7 +459,4 @@
 module:hook("presence/bare", preCheckIncoming, 500);
 module:hook("presence/host", preCheckIncoming, 500);
 
--- helpers.log_events(hosts["albastru.de"].events, "albastru.de");
--- helpers.log_events(prosody.events, "*");
-
 module:log("info", "mod_privacy loaded ...");