Software /
code /
prosody-modules
Changeset
372:000f1d1c6ca5
mod_blocking: Properly initialize the bootstrap privacy storage
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 02 May 2011 23:14:13 -0700 |
parents | 371:c416db434e5b |
children | 373:81c7b36e6cdd |
files | mod_blocking/mod_blocking.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_blocking/mod_blocking.lua Tue Apr 26 19:28:08 2011 +0200 +++ b/mod_blocking/mod_blocking.lua Mon May 02 23:14:13 2011 -0700 @@ -7,7 +7,7 @@ -- Add JID to default privacy list function add_blocked_jid(username, host, jid) - local privacy_lists = datamanager.load(username, host, "privacy") or {}; + local privacy_lists = datamanager.load(username, host, "privacy") or {lists = {}}; local default_list_name = privacy_lists.default; if not default_list_name then default_list_name = "blocklist";