Mercurial > prosody-modules
changeset 19:e400ee8471b0
mod_privacy: removed trunk dependency; make it work when no lists already are exiting
author | Thilo Cestonaro <thilo@cestona.ro> |
---|---|
date | Tue, 29 Sep 2009 12:59:42 +0200 |
parents | 2df11ec081fe |
children | 2675dc25445b |
files | mod_privacy/mod_privacy.lua |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 ...");